[freenet-cvs] r19880 - branches/saltedhashstore/freenet/src/…

Top Page
Delete this message
Reply to this message
Author: devl
Date:  
To: cvs
Subject: [freenet-cvs] r19880 - branches/saltedhashstore/freenet/src/freenet/store
Author: j16sdiz
Date: 2008-05-09 17:02:14 +0000 (Fri, 09 May 2008)
New Revision: 19880

Modified:
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
Log:
Move method to correct section


Modified: branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
===================================================================
--- branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java    2008-05-09 17:01:51 UTC (rev 19879)
+++ branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java    2008-05-09 17:02:14 UTC (rev 19880)
@@ -588,6 +588,21 @@
        }
    }

+    /**
+     * Change on disk store file size
+     *
+     * @param storeFileSize
+     */
+    private void setStoreFileSize(long storeFileSize) {
+        for (int i = 0; i < FILE_SPLIT; i++) {
+            try {
+                storeRAF[i].setLength(entryTotalLength * (storeFileSize / FILE_SPLIT + 1));
+            } catch (IOException e) {
+                Logger.error(this, "error resizing store file", e);
+            }
+        }
+    }
+    
    // ------------- Configuration
    /**
     * Configuration File
@@ -1204,18 +1219,4 @@
        return storeSize;
    }

-    /**
-     * Change on disk store file size
-     *
-     * @param storeFileSize
-     */
-    private void setStoreFileSize(long storeFileSize) {
-        for (int i = 0; i < FILE_SPLIT; i++) {
-            try {
-                storeRAF[i].setLength(entryTotalLength * (storeFileSize / FILE_SPLIT + 1));
-            } catch (IOException e) {
-                Logger.error(this, "error resizing store file", e);
-            }
-        }
-    }
}