We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ae8787 commit 5672a1aCopy full SHA for 5672a1a
1 file changed
libsql/src/sync.rs
@@ -628,6 +628,7 @@ impl SyncContext {
628
}
629
630
async fn sync_db_if_needed(&mut self, generation: u32) -> Result<()> {
631
+ assert!(generation > 0, "generation should be > 0");
632
// somehow we are ahead of the remote in generations. following should not happen because
633
// we checkpoint only if the remote server tells us to do so.
634
if self.durable_generation > generation {
0 commit comments