Unverified Commit 653750d6 authored by kenshin samourai's avatar kenshin samourai Committed by GitHub
Browse files

Merge pull request #6 from Samourai-Wallet/fix_compaction_market

store the compaction marker before the full compaction
parents 87d32b75 9ae53540
...@@ -209,11 +209,9 @@ fn full_compaction_marker() -> Row { ...@@ -209,11 +209,9 @@ fn full_compaction_marker() -> Row {
} }
pub fn full_compaction(store: DBStore) -> DBStore { pub fn full_compaction(store: DBStore) -> DBStore {
store.flush();
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.flush();
let store = store.compact().enable_compaction();
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