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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user