Reuse DB::get() at compact_as_needed()
This commit is contained in:
parent
6b9d38df49
commit
390d4d0290
|
@ -69,8 +69,8 @@ impl Store {
|
|||
}
|
||||
|
||||
pub fn compact_if_needed(&self) {
|
||||
let key = b"F"; // full compaction
|
||||
if self.db.get(key).unwrap().is_some() {
|
||||
let key = b"F"; // full compaction marker
|
||||
if self.get(key).is_some() {
|
||||
return;
|
||||
}
|
||||
info!("full compaction");
|
||||
|
|
Loading…
Reference in New Issue
Block a user