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
Chiguireitor
addrindexrs
Commits
7cbb9a6d
Commit
7cbb9a6d
authored
Nov 06, 2019
by
kenshin-samourai
Browse files
make sure that full compaction marker is written in db
parent
236f1e0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/store.rs
src/store.rs
+2
-0
No files found.
src/store.rs
View file @
7cbb9a6d
...
...
@@ -212,6 +212,8 @@ 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
();
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