jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1478289 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
Date Thu, 02 May 2013 07:00:25 GMT
Author: jukka
Date: Thu May  2 07:00:25 2013
New Revision: 1478289

URL: http://svn.apache.org/r1478289
Log:
OAK-788: File backend for the SegmentMK

Remember to increment the index when starting a new file

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java?rev=1478289&r1=1478288&r2=1478289&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java
Thu May  2 07:00:25 2013
@@ -176,7 +176,7 @@ public class FileStore implements Segmen
 
         if (0x200 + ((size + 0x1ff) & ~0x1ff) + 2 * 0x200 > rw.remaining()) {
             rw.force();
-            String name = String.format(FILE_NAME_FORMAT, index);
+            String name = String.format(FILE_NAME_FORMAT, ++index);
             File file = new File(directory, name);
             try {
                 RandomAccessFile f = new RandomAccessFile(file, "rw");



Mime
View raw message