OffRC always logs 0 for the number of compacted nodes in gc.log Use a single FileStore instance for running compaction and cleanup
Reverting changes from
@@ -134,8 +134,10 @@ public class Compact implements Runnable {
private void compact() 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;
