Author: toad
Date: 2006-11-08 17:37:51 +0000 (Wed, 08 Nov 2006)
New Revision: 10834

Modified:
   trunk/freenet/src/freenet/node/Node.java
Log:
Fix always-shrink-on-startup bug.

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2006-11-07 13:23:10 UTC (rev 
10833)
+++ trunk/freenet/src/freenet/node/Node.java    2006-11-08 17:37:51 UTC (rev 
10834)
@@ -2135,13 +2135,6 @@
                try {
                        if(deep) {
                                chkDatastore.put(block);
-                               long sz = Math.max(maxCacheKeys, maxTotalKeys - 
chkDatastore.keyCount());
-                               try {
-                                       chkDatacache.setMaxKeys(sz, false);
-                               } catch (DatabaseException e) {
-                                       // Impossible
-                                       Logger.error(this, "Caught "+e, e);
-                               }
                        }
                        chkDatacache.put(block);
                } catch (IOException e) {
@@ -2164,13 +2157,6 @@
                try {
                        if(deep) {
                                sskDatastore.put(block, false);
-                               long sz = Math.max(maxCacheKeys, maxTotalKeys - 
sskDatastore.keyCount());
-                               try {
-                                       chkDatacache.setMaxKeys(sz, false);
-                               } catch (DatabaseException e) {
-                                       // Impossible
-                                       Logger.error(this, "Caught "+e, e);
-                               }
                        }
                        sskDatacache.put(block, false);
                        cacheKey(((NodeSSK)block.getKey()).getPubKeyHash(), 
((NodeSSK)block.getKey()).getPubKey(), deep);


Reply via email to