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
cb79deae
Unverified
Commit
cb79deae
authored
Jun 11, 2020
by
kenshin samourai
Committed by
GitHub
Jun 11, 2020
Browse files
Merge pull request #9 from Samourai-Wallet/fix_auto_compaction
rewrite wriestore::flush()
parents
93b58831
571ee7a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/store.rs
src/store.rs
+1
-5
No files found.
src/store.rs
View file @
cb79deae
...
...
@@ -181,11 +181,7 @@ impl WriteStore for DBStore {
}
fn
flush
(
&
self
)
{
let
mut
opts
=
rocksdb
::
WriteOptions
::
new
();
opts
.set_sync
(
true
);
opts
.disable_wal
(
false
);
let
empty
=
rocksdb
::
WriteBatch
::
default
();
self
.db
.write_opt
(
empty
,
&
opts
)
.unwrap
();
self
.db
.flush
()
.unwrap
();
}
}
...
...
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