Always use the same FileStore instance when running offline compaction
@@ -147,10 +147,7 @@ public class Compact {
public void run() throws IOException, InvalidFileStoreVersionException {
try (FileStore store = newFileStore()) {
store.compactFull();
- }
-
System.out.println(" -> cleaning up");
- try (FileStore store = newFileStore()) {
store.cleanup();
File journal = new File(path, "journal.log");
String head;
