We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41eae61 commit 63d1c4aCopy full SHA for 63d1c4a
1 file changed
libsql/src/sync.rs
@@ -766,7 +766,12 @@ pub async fn bootstrap_db(sync_ctx: &mut SyncContext) -> Result<()> {
766
sync_ctx.sync_db_if_needed(info.current_generation).await?;
767
// when sync_ctx is initialised, we set durable_generation to 0. however, once
768
// sync_db is called, it should be > 0.
769
- assert!(sync_ctx.durable_generation > 0, "generation should be > 0");
+ if sync_ctx.durable_generation == 0 {
770
+ tracing::error!(
771
+ "generation should be > 0, got: {}",
772
+ sync_ctx.durable_generation
773
+ );
774
+ }
775
sync_ctx.initial_server_sync = true;
776
}
777
Ok(())
0 commit comments