Temporarily disable compactfiles

This commit is contained in:
Andrea Cavalli 2022-04-27 09:56:07 +02:00
parent 1bd3b8a945
commit f854ce1253

View File

@ -568,9 +568,9 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
} }
} }
bottommostLevel = Math.max(bottommostLevel, databaseOptions.defaultColumnOptions().levels().size() - 1); bottommostLevel = Math.max(bottommostLevel, databaseOptions.defaultColumnOptions().levels().size() - 1);
if (!files.isEmpty() && bottommostLevel != -1) { /*if (!files.isEmpty() && bottommostLevel != -1) {
db.compactFiles(co, cfh, files, bottommostLevel, volumeId, null); db.compactFiles(co, cfh, files, bottommostLevel, volumeId, null);
} }*/
try (var co2 = new CompactRangeOptions() try (var co2 = new CompactRangeOptions()
.setAllowWriteStall(true) .setAllowWriteStall(true)
.setChangeLevel(true) .setChangeLevel(true)