From: Christian Grothoff Date: Wed, 11 Apr 2018 09:58:53 +0000 (+0200) Subject: complete logic for incremental imports X-Git-Tag: v0.11.0pre66~111 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7fe5d70497352ea453289fc582089ac1c352204a;p=oweals%2Fgnunet.git complete logic for incremental imports --- 7fe5d70497352ea453289fc582089ac1c352204a 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,