Commit 571ee7a4 authored by kenshin-samourai's avatar kenshin-samourai
Browse files

rewrite wriestore::flush()

parent 93b58831
......@@ -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();
}
}
......
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