Author: toad
Date: 2007-04-14 13:45:54 +0000 (Sat, 14 Apr 2007)
New Revision: 12681

Modified:
   trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
Log:
Logging

Modified: trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-04-14 
13:26:38 UTC (rev 12680)
+++ trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-04-14 
13:45:54 UTC (rev 12681)
@@ -615,7 +615,7 @@
                                        long len = 
checkForHoles(chkBlocksFromFile, false);
                                        dontCheckForHolesShrinking = true;
                                        if(len < chkBlocksFromFile) {
-                                               System.err.println("Truncating 
to "+len+" as no non-holes after that point");
+                                               System.err.println("Truncating 
to "+len+" from "+chkBlocksFromFile+" as no non-holes after that point");
                                                chkStore.setLength(len * 
(dataBlockSize + headerBlockSize));
                                                chkBlocksInStore = len;
                                        }
@@ -666,7 +666,7 @@
                        if(i % 1024 == 0)
                        System.err.println("Checked "+i+" blocks, found 
"+holes+" holes");
                }
-               System.err.println("Checked database, found "+holes+" holes");
+               System.err.println("Checked database of "+blocksInFile+" 
blocks, found "+holes+" holes, maximum non-hole block: "+maxPresent);
                long bound = maxPresent+1;
                if(!dontTruncate) {
                        if(bound < chkBlocksInStore) {


Reply via email to