From 6b71efa5b6ce05babd5582b8ada0af1ff6dd8063 Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Sat, 19 Jul 2025 14:18:34 -0400 Subject: [PATCH] Accept mode argument for checkpoint in connection api --- core/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib.rs b/core/lib.rs index 2c1e73beb..ec0b7a56f 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -1188,13 +1188,13 @@ impl Connection { Ok(()) } - pub fn checkpoint(&self) -> Result { + pub fn checkpoint(&self, mode: CheckpointMode) -> Result { if self.closed.get() { return Err(LimboError::InternalError("Connection closed".to_string())); } self.pager .borrow() - .wal_checkpoint(self.wal_checkpoint_disabled.get()) + .wal_checkpoint(self.wal_checkpoint_disabled.get(), mode) } /// Close a connection and checkpoint.