Commit 9ae53540 authored by kenshin-samourai's avatar kenshin-samourai
Browse files

store the compaction marker before the full compaction

parent 87d32b75
......@@ -209,11 +209,9 @@ fn full_compaction_marker() -> Row {
}
pub fn full_compaction(store: DBStore) -> DBStore {
store.flush();
let store = store.compact().enable_compaction();
store.write(vec![full_compaction_marker()]);
// Make sure full compaction marker isn't left behind
store.flush();
let store = store.compact().enable_compaction();
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