Skip to content

Commit a2a7fe3

Browse files
committed
add durable_frame_no getter to SharedWal
1 parent 764a5f1 commit a2a7fe3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libsql-wal/src/shared_wal.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ impl<IO: Io> SharedWal<IO> {
9696
self.current.load().log_id()
9797
}
9898

99+
pub fn durable_frame_no(&self) -> u64 {
100+
*self.durable_frame_no.lock()
101+
}
102+
99103
#[tracing::instrument(skip_all)]
100104
pub fn begin_read(&self, conn_id: u64) -> ReadTransaction<IO::File> {
101105
// FIXME: this is not enough to just increment the counter, we must make sure that the segment

0 commit comments

Comments
 (0)