Author: toad
Date: 2009-04-03 00:34:10 +0000 (Fri, 03 Apr 2009)
New Revision: 26404

Modified:
   trunk/freenet/src/freenet/client/async/DatastoreChecker.java
Log:
Don't forget to decrement the removed keys from the total, otherwise we end up 
removing everything until/unless we find a really big item...


Modified: trunk/freenet/src/freenet/client/async/DatastoreChecker.java
===================================================================
--- trunk/freenet/src/freenet/client/async/DatastoreChecker.java        
2009-04-03 00:30:42 UTC (rev 26403)
+++ trunk/freenet/src/freenet/client/async/DatastoreChecker.java        
2009-04-03 00:34:10 UTC (rev 26404)
@@ -205,7 +205,7 @@
                                                container.store(item);
                                                if(postQueueSize + preQueueSize 
- keys.length < MAX_PERSISTENT_KEYS) {
                                                        return false;
-                                               }
+                                               } else postQueueSize -= 
keys.length;
                                        }
                                }
                                // Still over the limit.

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to