0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-30 17:02:49 +00:00

set durable_frame_no before injecting in sync_one

This commit is contained in:
ad hoc
2024-08-31 22:33:15 +02:00
parent 1e93bc8446
commit e22ba695df

@ -533,6 +533,9 @@ where
.stream(&mut seen, remote_durable_frame_no, 1)
.peekable();
let mut injector = Injector::new(shared.clone(), 10)?;
// we set the durable frame_no before we start injecting, because the wal may want to
// checkpoint on commit.
injector.set_durable(remote_durable_frame_no);
// use pin to the heap so that we can drop the stream in the loop, and count `seen`.
let mut stream = Box::pin(stream);
loop {