[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20181 - gnunet/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20181 - gnunet/src/namestore |
Date: |
Thu, 1 Mar 2012 19:08:47 +0100 |
Author: wachs
Date: 2012-03-01 19:08:47 +0100 (Thu, 01 Mar 2012)
New Revision: 20181
Modified:
gnunet/src/namestore/gnunet-service-namestore.c
gnunet/src/namestore/namestore_api.c
gnunet/src/namestore/test_namestore_api.conf
gnunet/src/namestore/test_namestore_api_create.c
gnunet/src/namestore/test_namestore_api_lookup.c
gnunet/src/namestore/test_namestore_api_remove.c
gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
Log:
- fixes
Modified: gnunet/src/namestore/gnunet-service-namestore.c
===================================================================
--- gnunet/src/namestore/gnunet-service-namestore.c 2012-03-01 18:06:51 UTC
(rev 20180)
+++ gnunet/src/namestore/gnunet-service-namestore.c 2012-03-01 18:08:47 UTC
(rev 20181)
@@ -109,11 +109,11 @@
next = nc->next;
for (no = nc->op_head; no != NULL; no = tmp)
{
+ GNUNET_break (0);
GNUNET_CONTAINER_DLL_remove (nc->op_head, nc->op_tail, no);
tmp = no->next;
GNUNET_free (no);
}
-
GNUNET_SERVER_client_drop(nc->client);
GNUNET_CONTAINER_DLL_remove (client_head, client_tail, nc);
GNUNET_free (nc);
@@ -364,7 +364,7 @@
return;
}
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Looking up record for name `%s'\n",
name);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Looking up record for name `%s' in
zone `%s'\n", name, GNUNET_h2s(&ln_msg->zone));
/* do the actual lookup */
lnc.request_id = rid;
@@ -469,6 +469,8 @@
GNUNET_HashCode zone_hash;
GNUNET_CRYPTO_hash (zone_key, key_len, &zone_hash);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Putting %u record for name `%s' in
zone `%s'\n", rd_count, name, GNUNET_h2s(&zone_hash));
+
/* Database operation */
res = GSN_database->put_records(GSN_database->cls,
zone_key,
@@ -642,6 +644,8 @@
crc.nc = nc;
crc.op_id = rid;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Creating record for name `%s' in zone
`%s'\n", name_tmp, GNUNET_h2s(&pubkey_hash));
+
/* Get existing records for name */
res = GSN_database->iterate_records(GSN_database->cls, &pubkey_hash,
name_tmp, 0, &handle_create_record_it, &crc);
@@ -850,6 +854,8 @@
rrc.rd = rd;
rrc.pkey = pkey;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Removing record for name `%s' in zone
`%s'\n", name_tmp, GNUNET_h2s(&pubkey_hash));
+
/* Database operation */
res = GSN_database->iterate_records (GSN_database->cls,
&pubkey_hash,
Modified: gnunet/src/namestore/namestore_api.c
===================================================================
--- gnunet/src/namestore/namestore_api.c 2012-03-01 18:06:51 UTC (rev
20180)
+++ gnunet/src/namestore/namestore_api.c 2012-03-01 18:08:47 UTC (rev
20181)
@@ -767,6 +767,7 @@
while (NULL != (q = h->op_head))
{
+ GNUNET_break (0);
GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, q);
GNUNET_free (q);
}
Modified: gnunet/src/namestore/test_namestore_api.conf
===================================================================
--- gnunet/src/namestore/test_namestore_api.conf 2012-03-01 18:06:51 UTC
(rev 20180)
+++ gnunet/src/namestore/test_namestore_api.conf 2012-03-01 18:08:47 UTC
(rev 20181)
@@ -4,7 +4,7 @@
UNIXPATH = /tmp/gnunet-p1-service-arm.sock
[namestore]
-PREFIX = valgrind --leak-check=full
+#PREFIX = valgrind --leak-check=full
AUTOSTART = YES
UNIXPATH = /tmp/gnunet-service-namestore.sock
UNIX_MATCH_UID = YES
Modified: gnunet/src/namestore/test_namestore_api_create.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_create.c 2012-03-01 18:06:51 UTC
(rev 20180)
+++ gnunet/src/namestore/test_namestore_api_create.c 2012-03-01 18:08:47 UTC
(rev 20181)
@@ -331,8 +331,8 @@
GNUNET_TIME_absolute_get_forever(),
RECORDS, s_rd, s_signature, put_cont, s_name);
- GNUNET_free (s_signature);
+
}
static int
@@ -362,7 +362,7 @@
int ret;
ret = check ();
-
+ GNUNET_free (s_signature);
return ret;
}
Modified: gnunet/src/namestore/test_namestore_api_lookup.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_lookup.c 2012-03-01 18:06:51 UTC
(rev 20180)
+++ gnunet/src/namestore/test_namestore_api_lookup.c 2012-03-01 18:08:47 UTC
(rev 20181)
@@ -149,7 +149,7 @@
failed = GNUNET_YES;
}
- if (0 != memcmp (signature, &s_signature, sizeof (struct
GNUNET_CRYPTO_RsaSignature)))
+ if (0 != memcmp (signature, s_signature, sizeof (struct
GNUNET_CRYPTO_RsaSignature)))
{
GNUNET_break (0);
failed = GNUNET_YES;
@@ -268,8 +268,8 @@
GNUNET_TIME_absolute_get_forever(),
RECORDS, s_rd, s_signature, put_cont, s_name);
- GNUNET_free (s_signature);
+
}
static int
@@ -299,7 +299,7 @@
int ret;
ret = check ();
-
+ GNUNET_free (s_signature);
return ret;
}
Modified: gnunet/src/namestore/test_namestore_api_remove.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_remove.c 2012-03-01 18:06:51 UTC
(rev 20180)
+++ gnunet/src/namestore/test_namestore_api_remove.c 2012-03-01 18:08:47 UTC
(rev 20181)
@@ -304,8 +304,8 @@
GNUNET_TIME_absolute_get_forever(),
RECORDS, s_rd, s_signature, put_cont, s_name);
- GNUNET_free (s_signature);
+
}
static int
@@ -335,7 +335,7 @@
int ret;
ret = check ();
-
+ GNUNET_free (s_signature);
return ret;
}
Modified: gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
2012-03-01 18:06:51 UTC (rev 20180)
+++ gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
2012-03-01 18:08:47 UTC (rev 20181)
@@ -238,7 +238,7 @@
GNUNET_TIME_absolute_get_forever(),
RECORDS, s_rd, s_signature, put_cont, s_name);
- GNUNET_free (s_signature);
+
}
static int
@@ -268,7 +268,7 @@
int ret;
ret = check ();
-
+ GNUNET_free (s_signature);
return ret;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20181 - gnunet/src/namestore,
gnunet <=