Author: toad
Date: 2008-04-14 17:15:23 +0000 (Mon, 14 Apr 2008)
New Revision: 19329
Modified:
trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
Log:
Comments
Modified: trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2008-04-14
17:05:50 UTC (rev 19328)
+++ trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2008-04-14
17:15:23 UTC (rev 19329)
@@ -975,6 +975,9 @@
System.err.println("File pointer is
"+storeRAF.getFilePointer()+" but should be "+((headerBlockSize +
dataBlockSize)));
System.exit(NodeInitException.EXIT_STORE_RECONSTRUCT);
}
+ // FIXME only do the read if we need the data,
and if we do, do a seek first.
+ // Post 0.7.0; only a useful optimisation if we
have a good .keys file, but should
+ // save some I/O when we do.
storeRAF.readFully(header);
storeRAF.readFully(data);
if(lruRAFLength > (l+1)*8) {