Author: j16sdiz
Date: 2008-07-09 08:44:20 +0000 (Wed, 09 Jul 2008)
New Revision: 21011

Modified:
   
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
Log:
wait 10 minutes before doing cleaner job

Modified: 
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
===================================================================
--- 
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
   2008-07-09 08:43:57 UTC (rev 21010)
+++ 
branches/saltedhashstore/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
   2008-07-09 08:44:20 UTC (rev 21011)
@@ -839,6 +839,12 @@
                        while (!shutdown) {
                                cleanerLock.lock();
                                try {
+                                       try {
+                                               
cleanerCondition.await(CLEANER_PERIOD, TimeUnit.MILLISECONDS);
+                                       } catch (InterruptedException e) {
+                                               Logger.debug(this, 
"interrupted", e);
+                                       }
+                                       
                                        long _prevStoreSize;
                                        configLock.readLock().lock();
                                        try {
@@ -877,12 +883,6 @@
                                                Logger.error(this, "Can't force 
bloom filter", e);
                                        }
                                        writeConfigFile();
-
-                                       try {
-                                               
cleanerCondition.await(CLEANER_PERIOD, TimeUnit.MILLISECONDS);
-                                       } catch (InterruptedException e) {
-                                               Logger.debug(this, 
"interrupted", e);
-                                       }
                                } finally {
                                        cleanerLock.unlock();
                                }


Reply via email to