aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-service-namestore.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-01 18:08:47 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-01 18:08:47 +0000
commit996a989c215bd8021b48424386ac1dfa420f52da (patch)
tree1b70a0cefc426d383011fe778ff559607e070fcc /src/namestore/gnunet-service-namestore.c
parent84a9934f89765fda5882a0c9d4c3f401df62625e (diff)
downloadgnunet-996a989c215bd8021b48424386ac1dfa420f52da.tar.gz
gnunet-996a989c215bd8021b48424386ac1dfa420f52da.zip
- fixes
Diffstat (limited to 'src/namestore/gnunet-service-namestore.c')
-rw-r--r--src/namestore/gnunet-service-namestore.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index f25907b81..7bb6ddd91 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -109,11 +109,11 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
109 next = nc->next; 109 next = nc->next;
110 for (no = nc->op_head; no != NULL; no = tmp) 110 for (no = nc->op_head; no != NULL; no = tmp)
111 { 111 {
112 GNUNET_break (0);
112 GNUNET_CONTAINER_DLL_remove (nc->op_head, nc->op_tail, no); 113 GNUNET_CONTAINER_DLL_remove (nc->op_head, nc->op_tail, no);
113 tmp = no->next; 114 tmp = no->next;
114 GNUNET_free (no); 115 GNUNET_free (no);
115 } 116 }
116
117 GNUNET_SERVER_client_drop(nc->client); 117 GNUNET_SERVER_client_drop(nc->client);
118 GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc); 118 GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc);
119 GNUNET_free (nc); 119 GNUNET_free (nc);
@@ -364,7 +364,7 @@ static void handle_lookup_name (void *cls,
364 return; 364 return;
365 } 365 }
366 366
367 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Looking up record for name `%s'\n", name); 367 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Looking up record for name `%s' in zone `%s'\n", name, GNUNET_h2s(&ln_msg->zone));
368 368
369 /* do the actual lookup */ 369 /* do the actual lookup */
370 lnc.request_id = rid; 370 lnc.request_id = rid;
@@ -469,6 +469,8 @@ static void handle_record_put (void *cls,
469 GNUNET_HashCode zone_hash; 469 GNUNET_HashCode zone_hash;
470 GNUNET_CRYPTO_hash (zone_key, key_len, &zone_hash); 470 GNUNET_CRYPTO_hash (zone_key, key_len, &zone_hash);
471 471
472 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Putting %u record for name `%s' in zone `%s'\n", rd_count, name, GNUNET_h2s(&zone_hash));
473
472 /* Database operation */ 474 /* Database operation */
473 res = GSN_database->put_records(GSN_database->cls, 475 res = GSN_database->put_records(GSN_database->cls,
474 zone_key, 476 zone_key,
@@ -642,6 +644,8 @@ static void handle_record_create (void *cls,
642 crc.nc = nc; 644 crc.nc = nc;
643 crc.op_id = rid; 645 crc.op_id = rid;
644 646
647 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Creating record for name `%s' in zone `%s'\n", name_tmp, GNUNET_h2s(&pubkey_hash));
648
645 /* Get existing records for name */ 649 /* Get existing records for name */
646 res = GSN_database->iterate_records(GSN_database->cls, &pubkey_hash, name_tmp, 0, &handle_create_record_it, &crc); 650 res = GSN_database->iterate_records(GSN_database->cls, &pubkey_hash, name_tmp, 0, &handle_create_record_it, &crc);
647 651
@@ -850,6 +854,8 @@ static void handle_record_remove (void *cls,
850 rrc.rd = rd; 854 rrc.rd = rd;
851 rrc.pkey = pkey; 855 rrc.pkey = pkey;
852 856
857 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Removing record for name `%s' in zone `%s'\n", name_tmp, GNUNET_h2s(&pubkey_hash));
858
853 /* Database operation */ 859 /* Database operation */
854 res = GSN_database->iterate_records (GSN_database->cls, 860 res = GSN_database->iterate_records (GSN_database->cls,
855 &pubkey_hash, 861 &pubkey_hash,