Author: toad
Date: 2007-03-15 20:36:57 +0000 (Thu, 15 Mar 2007)
New Revision: 12141
Modified:
trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
Log:
Tell the user (at least if they listen to ERRORs)
Modified: trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-03-15
20:25:50 UTC (rev 12140)
+++ trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2007-03-15
20:36:57 UTC (rev 12141)
@@ -657,6 +657,8 @@
if(chkBlocksInStore <= maxChkBlocks) return true;
}
if(chkBlocksInStore * 0.9 > maxChkBlocks ||
forceBigOnlineShrinks) {
+ Logger.error(this, "Doing quick and dirty shrink of the
store by "+(100 * (chkBlocksInStore - maxChkBlocks) / chkBlocksInStore)+"%");
+ Logger.error(this, "Offline shrinks will preserve the
most recently used data, this online shrink does not.");
Runnable r = new Runnable() {
public void run() {
try {