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.