fix/wal: reset ongoing checkpoint state when checkpoint fails

This commit is contained in:
Jussi Saurio
2025-08-01 08:35:31 +03:00
parent bbdfc406ed
commit e6528f2664

View File

@@ -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;
})
}