[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13298 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13298 - gnunet/src/datastore |
Date: |
Tue, 19 Oct 2010 13:52:42 +0200 |
Author: grothoff
Date: 2010-10-19 13:52:42 +0200 (Tue, 19 Oct 2010)
New Revision: 13298
Modified:
gnunet/src/datastore/datastore.h
gnunet/src/datastore/datastore_api.c
Log:
log drop
Modified: gnunet/src/datastore/datastore.h
===================================================================
--- gnunet/src/datastore/datastore.h 2010-10-19 11:23:57 UTC (rev 13297)
+++ gnunet/src/datastore/datastore.h 2010-10-19 11:52:42 UTC (rev 13298)
@@ -27,7 +27,7 @@
#ifndef DATASTORE_H
#define DATASTORE_H
-#define DEBUG_DATASTORE GNUNET_YES
+#define DEBUG_DATASTORE GNUNET_NO
#include "gnunet_util_lib.h"
Modified: gnunet/src/datastore/datastore_api.c
===================================================================
--- gnunet/src/datastore/datastore_api.c 2010-10-19 11:23:57 UTC (rev
13297)
+++ gnunet/src/datastore/datastore_api.c 2010-10-19 11:52:42 UTC (rev
13298)
@@ -1090,6 +1090,13 @@
_("Failed to receive response from database.\n"));
do_disconnect (h);
}
+ else
+ {
+#if DEBUG_DATASTORE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Request dropped due to finite datastore queue
length.\n");
+#endif
+ }
if (rc.iter != NULL)
rc.iter (rc.iter_cls,
NULL, 0, NULL, 0, 0, 0,
@@ -1307,7 +1314,14 @@
queue_priority, max_queue_size, timeout,
&process_result_message, &qc);
if (qe == NULL)
- return NULL;
+ {
+#if DEBUG_DATASTORE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Could not queue request for `%s'\n",
+ GNUNET_h2s (key));
+#endif
+ return NULL;
+ }
gm = (struct GetMessage*) &qe[1];
gm->header.type = htons(GNUNET_MESSAGE_TYPE_DATASTORE_GET);
gm->type = htonl(type);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13298 - gnunet/src/datastore,
gnunet <=