Reset checkpoiunt redo field after storing it to correctly detect normal shutdown

This commit is contained in:
Konstantin Knizhnik
2024-12-05 09:04:59 +02:00
parent 7fed72e951
commit 7a92454fbe

View File

@@ -282,6 +282,7 @@ impl WalIngest {
let new_checkpoint_bytes = self.checkpoint.encode()?;
modification.put_checkpoint(new_checkpoint_bytes)?;
enum_pgversion_dispatch!(&mut self.checkpoint, CheckPoint, cp, { cp.redo = 0 });
self.checkpoint_modified = false;
}