diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-23 12:42:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-23 12:42:00 +0200 |
commit | e1f46c052dca3cd7a390f18f97b10162fe537a15 (patch) | |
tree | daa43ca3b189b6f86425801dc94413a71a04a66c /src/namestore/gnunet-zoneimport.c | |
parent | ff4d7b51f37f61633766664647e9b148af1e4f0a (diff) | |
download | gnunet-e1f46c052dca3cd7a390f18f97b10162fe537a15.tar.gz gnunet-e1f46c052dca3cd7a390f18f97b10162fe537a15.zip |
move to @ for empty label, fix empty-label resolution bug in GNS API, install gnunet-zoneimport and add man page
Diffstat (limited to 'src/namestore/gnunet-zoneimport.c')
-rw-r--r-- | src/namestore/gnunet-zoneimport.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/namestore/gnunet-zoneimport.c b/src/namestore/gnunet-zoneimport.c index 279bfddea..89afeeeb1 100644 --- a/src/namestore/gnunet-zoneimport.c +++ b/src/namestore/gnunet-zoneimport.c | |||
@@ -21,9 +21,6 @@ | |||
21 | * @file src/namestore/gnunet-zoneimport.c | 21 | * @file src/namestore/gnunet-zoneimport.c |
22 | * @brief import a DNS zone for publication in GNS, incremental | 22 | * @brief import a DNS zone for publication in GNS, incremental |
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | * | ||
25 | * TODO: | ||
26 | * - set NICKname for zone's records | ||
27 | */ | 24 | */ |
28 | #include "platform.h" | 25 | #include "platform.h" |
29 | #include <gnunet_util_lib.h> | 26 | #include <gnunet_util_lib.h> |
@@ -50,11 +47,6 @@ | |||
50 | */ | 47 | */ |
51 | #define MAX_RETRIES 5 | 48 | #define MAX_RETRIES 5 |
52 | 49 | ||
53 | /** | ||
54 | * After how many lookups should we always sync to disk? | ||
55 | */ | ||
56 | #define TRANSACTION_SYNC_FREQ 100 | ||
57 | |||
58 | 50 | ||
59 | /** | 51 | /** |
60 | * Some zones may include authoritative records for other | 52 | * Some zones may include authoritative records for other |
@@ -795,6 +787,7 @@ store_completed_cb (void *cls, | |||
795 | const char *emsg) | 787 | const char *emsg) |
796 | { | 788 | { |
797 | struct Request *req = cls; | 789 | struct Request *req = cls; |
790 | struct Record *rec; | ||
798 | 791 | ||
799 | req->qe = NULL; | 792 | req->qe = NULL; |
800 | pending--; | 793 | pending--; |
@@ -811,6 +804,14 @@ store_completed_cb (void *cls, | |||
811 | "Stored records under `%s'\n", | 804 | "Stored records under `%s'\n", |
812 | req->label); | 805 | req->label); |
813 | } | 806 | } |
807 | /* Free records */ | ||
808 | while (NULL != (rec = req->rec_head)) | ||
809 | { | ||
810 | GNUNET_CONTAINER_DLL_remove (req->rec_head, | ||
811 | req->rec_tail, | ||
812 | rec); | ||
813 | GNUNET_free (rec); | ||
814 | } | ||
814 | } | 815 | } |
815 | 816 | ||
816 | 817 | ||
@@ -877,14 +878,6 @@ process_result (void *cls, | |||
877 | pending--; | 878 | pending--; |
878 | return; | 879 | return; |
879 | } | 880 | } |
880 | /* Free old/legacy records */ | ||
881 | while (NULL != (rec = req->rec_head)) | ||
882 | { | ||
883 | GNUNET_CONTAINER_DLL_remove (req->rec_head, | ||
884 | req->rec_tail, | ||
885 | rec); | ||
886 | GNUNET_free (rec); | ||
887 | } | ||
888 | /* import new records */ | 881 | /* import new records */ |
889 | req->issue_num = 0; /* success, reset counter! */ | 882 | req->issue_num = 0; /* success, reset counter! */ |
890 | req->p = p; | 883 | req->p = p; |