Skip to content

Commit 718b27c

Browse files
committed
set durable frame_no upon injection
1 parent 12008ad commit 718b27c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libsql-replication/src/replicator.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ where
328328
async fn inject_frame(&mut self, frame: RpcFrame) -> Result<(), Error> {
329329
self.frames_synced += 1;
330330

331+
if let Some(frame_no) = frame.durable_frame_no {
332+
self.injector.durable_frame_no(frame_no);
333+
}
334+
331335
match self.injector.inject_frame(frame).await? {
332336
Some(commit_fno) => {
333337
self.client.commit_frame_no(commit_fno).await?;

0 commit comments

Comments
 (0)