Skip to content

Commit e22ba69

Browse files
committed
set durable_frame_no before injecting in sync_one
1 parent 1e93bc8 commit e22ba69

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libsql-wal/src/registry.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,9 @@ where
533533
.stream(&mut seen, remote_durable_frame_no, 1)
534534
.peekable();
535535
let mut injector = Injector::new(shared.clone(), 10)?;
536+
// we set the durable frame_no before we start injecting, because the wal may want to
537+
// checkpoint on commit.
538+
injector.set_durable(remote_durable_frame_no);
536539
// use pin to the heap so that we can drop the stream in the loop, and count `seen`.
537540
let mut stream = Box::pin(stream);
538541
loop {

0 commit comments

Comments
 (0)