From e6528f2664863f2e08d4f4dcda20eb5b7a7c3388 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Fri, 1 Aug 2025 08:35:31 +0300 Subject: [PATCH] fix/wal: reset ongoing checkpoint state when checkpoint fails --- core/storage/wal.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/storage/wal.rs b/core/storage/wal.rs index e4f0a7121..15ffc17a5 100644 --- a/core/storage/wal.rs +++ b/core/storage/wal.rs @@ -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; }) }