mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-15 21:14:21 +01:00
fix/wal: reset ongoing checkpoint state when checkpoint fails
This commit is contained in:
@@ -1182,6 +1182,7 @@ impl Wal for WalFile {
|
||||
self.checkpoint_inner(pager, _write_counter, mode)
|
||||
.inspect_err(|_| {
|
||||
let _ = self.checkpoint_guard.take();
|
||||
self.ongoing_checkpoint.state = CheckpointState::Start;
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user