gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 02/02: complete logic for incremental imports


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 02/02: complete logic for incremental imports
Date: Wed, 11 Apr 2018 11:59:07 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit 7fe5d70497352ea453289fc582089ac1c352204a
Merge: 3b08fb626 a67848585
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 11 11:58:53 2018 +0200

    complete logic for incremental imports

 src/namestore/gnunet-zoneimport.c | 19 ++++++++++++++++++-
 src/rps/test_rps.c                | 30 ++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletion(-)

diff --cc src/namestore/gnunet-zoneimport.c
index 763a94c3a,763a94c3a..493569bca
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@@ -1093,8 -1093,8 +1093,25 @@@ queue (const char *hostname
    }
    else
    {
++    unsigned int rd_count = 0;
++    
++    req->expires = GNUNET_TIME_UNIT_FOREVER_ABS;
++    for (struct Record *rec = req->rec_head;
++       NULL != rec;
++       rec = rec->next)
++    {
++      struct GNUNET_TIME_Absolute at;
++
++      at.abs_value_us = rec->grd.expiration_time;
++      req->expires = GNUNET_TIME_absolute_min (req->expires,
++                                             at);
++      rd_count++;
++    }
++    if (0 == rd_count)
++      req->expires = GNUNET_TIME_UNIT_ZERO_ABS;
      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
--                "Succeeded hot-start with existing data for `%s'\n",
++                "Hot-start with %u existing records for `%s'\n",
++              rd_count,
                  req->label);
    }
    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]