Author: toad
Date: 2009-01-29 23:03:19 +0000 (Thu, 29 Jan 2009)
New Revision: 25386
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
Log:
Maybe fix saces' bug: we weren't checking the first 4096 blocks!
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
===================================================================
---
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
2009-01-29 22:56:11 UTC (rev 25385)
+++
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
2009-01-29 23:03:19 UTC (rev 25386)
@@ -389,7 +389,7 @@
* In the meantime, lets try from the end, going
backwards by a manageable number of slots at a time...
*/
long lastCommitted = -1;
- for(long threshold = blocks - 4096; threshold >= 0;
threshold -= 4096) {
+ for(long threshold = blocks - 4096; threshold >= -4095;
threshold -= 4096) {
Query query = container.query();
query.constrain(PersistentBlobTempBucketTag.class);
query.descend("isFree").constrain(false);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs