gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2338 - GNUnet/src/applications/datastore


From: grothoff
Subject: [GNUnet-SVN] r2338 - GNUnet/src/applications/datastore
Date: Fri, 16 Dec 2005 20:38:47 -0800 (PST)

Author: grothoff
Date: 2005-12-16 20:38:44 -0800 (Fri, 16 Dec 2005)
New Revision: 2338

Modified:
   GNUnet/src/applications/datastore/datastore.c
Log:
report db full

Modified: GNUnet/src/applications/datastore/datastore.c
===================================================================
--- GNUnet/src/applications/datastore/datastore.c       2005-12-17 03:54:49 UTC 
(rev 2337)
+++ GNUnet/src/applications/datastore/datastore.c       2005-12-17 04:38:44 UTC 
(rev 2338)
@@ -159,9 +159,14 @@
 
   /* check if we have enough space / priority */
   if ( (available < ntohl(value->size) ) &&
-       (minPriority > ntohl(value->prio)) )
+       (minPriority > ntohl(value->prio)) ) {
+    LOG(LOG_WARNING,
+       "Datastore full (%llu/%llu) and content priority too low to kick out 
other content.  Refusing put.\n",
+       sq->getSize(), 
+       quota);
     return SYSERR; /* new content has such a low priority that
                      we should not even bother! */
+  }
   if (ntohl(value->prio) < minPriority)
     minPriority = ntohl(value->prio);
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]