Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Dojo
addrindexrs
Commits
653750d6
Unverified
Commit
653750d6
authored
Apr 30, 2020
by
kenshin samourai
Committed by
GitHub
Apr 30, 2020
Browse files
Merge pull request #6 from Samourai-Wallet/fix_compaction_market
store the compaction marker before the full compaction
parents
87d32b75
9ae53540
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/store.rs
src/store.rs
+1
-3
No files found.
src/store.rs
View file @
653750d6
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment