Author: toad
Date: 2008-10-29 19:24:46 +0000 (Wed, 29 Oct 2008)
New Revision: 23178
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
Log:
containsKey not get!=null, logging
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
===================================================================
---
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
2008-10-29 19:24:05 UTC (rev 23177)
+++
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucketFactory.java
2008-10-29 19:24:46 UTC (rev 23178)
@@ -128,7 +128,7 @@
stored = notCommittedBlobs.get(ptr) ==
null;
if(stored) {
if(freeSlots.containsKey(ptr))
break;
- if(notCommittedBlobs.get(ptr)
!= null) {
+
if(notCommittedBlobs.containsKey(ptr)) {
ptr--;
continue;
}
@@ -213,7 +213,7 @@
}
PersistentBlobTempBucket bucket = new
PersistentBlobTempBucket(this, blockSize, slot, tag);
notCommittedBlobs.put(slot, bucket);
- if(Logger.shouldLog(Logger.MINOR, this))
Logger.minor(this, "Using slot "+slot+" for "+bucket);
+ if(Logger.shouldLog(Logger.MINOR, this))
Logger.minor(this, "Using slot "+slot+" for "+bucket+" (after waiting)");
return bucket;
}
}