Author: toad
Date: 2009-02-03 22:45:28 +0000 (Tue, 03 Feb 2009)
New Revision: 25529
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
Log:
Logging/paranoia
Modified:
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
2009-02-03 22:44:58 UTC (rev 25528)
+++ branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
2009-02-03 22:45:28 UTC (rev 25529)
@@ -96,7 +96,7 @@
if(offset + length >= max)
length = (int) Math.min(max - offset,
Integer.MAX_VALUE);
if(length == 0) return -1;
- if(length < 0) throw new
IllegalStateException("offset="+bufOffset+" length="+length+"buf len =
"+buffer.length);
+ if(length < 0) throw new
IllegalStateException("offset="+bufOffset+" length="+length+" buf len =
"+buffer.length+" my offset is "+offset+" my size is "+max);
ByteBuffer buf = ByteBuffer.wrap(buffer,
bufOffset, length);
int read = channel.read(buf, blockSize * index
+ offset);
if(read > 0) offset += read;
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs