[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8775 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8775 - gnunet/src/datastore |
Date: |
Sat, 25 Jul 2009 04:30:50 -0600 |
Author: grothoff
Date: 2009-07-25 04:30:50 -0600 (Sat, 25 Jul 2009)
New Revision: 8775
Modified:
gnunet/src/datastore/gnunet-service-datastore.c
gnunet/src/datastore/perf_datastore_api.c
gnunet/src/datastore/test_datastore_api_data.conf
Log:
fx
Modified: gnunet/src/datastore/gnunet-service-datastore.c
===================================================================
--- gnunet/src/datastore/gnunet-service-datastore.c 2009-07-25 07:41:34 UTC
(rev 8774)
+++ gnunet/src/datastore/gnunet-service-datastore.c 2009-07-25 10:30:50 UTC
(rev 8775)
@@ -276,6 +276,11 @@
return GNUNET_SYSERR;
}
plugin->api->next_request (next_cls, GNUNET_NO);
+#if DEBUG_DATASTORE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Deleting content that expired %llu ms ago\n",
+ (unsigned long long) (now.value - expiration.value));
+#endif
return GNUNET_NO; /* delete */
}
@@ -345,6 +350,12 @@
*need -= size + GNUNET_DATASTORE_ENTRY_OVERHEAD;
plugin->api->next_request (next_cls,
(0 == *need) ? GNUNET_YES : GNUNET_NO);
+#if DEBUG_DATASTORE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Deleting %llu bytes of low-priority content (still trying to
recover %llu bytes)\n",
+ size + GNUNET_DATASTORE_ENTRY_OVERHEAD,
+ *need);
+#endif
return GNUNET_NO;
}
@@ -366,6 +377,11 @@
{
unsigned long long *n;
+#if DEBUG_DATASTORE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Asked to recover %llu bytes of cache space\n",
+ need);
+#endif
n = GNUNET_malloc (sizeof(unsigned long long));
*n = need;
plugin->api->iter_low_priority (plugin->api->cls,
@@ -416,10 +432,6 @@
tcc->tc (tcc->tc_cls, GNUNET_OK);
if (GNUNET_YES == tcc->end)
{
-#if DEBUG_DATASTORE
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Request completed, ready for the next request!\n");
-#endif
GNUNET_SERVER_receive_done (tcc->client, GNUNET_OK);
}
else
Modified: gnunet/src/datastore/perf_datastore_api.c
===================================================================
--- gnunet/src/datastore/perf_datastore_api.c 2009-07-25 07:41:34 UTC (rev
8774)
+++ gnunet/src/datastore/perf_datastore_api.c 2009-07-25 10:30:50 UTC (rev
8775)
@@ -380,7 +380,7 @@
GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-datastore");
GNUNET_log_setup ("perf-datastore-api",
#if VERBOSE
- "DEBUG",
+ "DEBUG",
#else
"WARNING",
#endif
Modified: gnunet/src/datastore/test_datastore_api_data.conf
===================================================================
--- gnunet/src/datastore/test_datastore_api_data.conf 2009-07-25 07:41:34 UTC
(rev 8774)
+++ gnunet/src/datastore/test_datastore_api_data.conf 2009-07-25 10:30:50 UTC
(rev 8775)
@@ -10,7 +10,7 @@
ACCEPT_FROM = 127.0.0.1;
ACCEPT_FROM6 = ::1;
ALLOW_SHUTDOWN = YES
-QUOTA = 1000000
+QUOTA = 10000000
BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
DATABASE = sqlite
# USERNAME =
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8775 - gnunet/src/datastore,
gnunet <=