Skip to content

Commit 1e93bc8

Browse files
committed
do not seal segment in sync_one
this is now done by the injector
1 parent 20bdf11 commit 1e93bc8

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

libsql-wal/src/registry.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -552,18 +552,6 @@ where
552552
None => break,
553553
}
554554
}
555-
556-
let mut tx = Transaction::Write(injector.into_guard().into_inner());
557-
let ret = {
558-
let mut guard = tx.as_write_mut().unwrap().lock();
559-
guard.commit();
560-
// the current segment it unordered, no new frames should be appended to it, seal it and
561-
// open a new segment
562-
shared.swap_current(&guard)
563-
};
564-
// make sure the tx is always ended before it's dropped!
565-
tx.end();
566-
ret?;
567555
}
568556

569557
tracing::info!("local database is up to date");

0 commit comments

Comments
 (0)