cork database during global counter increment
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -57,6 +57,7 @@ impl Data {
|
||||
}
|
||||
|
||||
pub fn next_count(&self) -> Result<u64> {
|
||||
let _cork = self.db.cork();
|
||||
let mut lock = self.counter.write().expect("locked");
|
||||
let counter: &mut u64 = &mut lock;
|
||||
debug_assert!(
|
||||
|
||||
Reference in New Issue
Block a user