Commit 7cbb9a6d authored by kenshin-samourai's avatar kenshin-samourai
Browse files

make sure that full compaction marker is written in db

parent 236f1e0e
...@@ -212,6 +212,8 @@ pub fn full_compaction(store: DBStore) -> DBStore { ...@@ -212,6 +212,8 @@ pub fn full_compaction(store: DBStore) -> DBStore {
store.flush(); store.flush();
let store = store.compact().enable_compaction(); let store = store.compact().enable_compaction();
store.write(vec![full_compaction_marker()]); store.write(vec![full_compaction_marker()]);
// Make sure full compaction marker isn't left behind
store.flush();
store store
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment