Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion libsql/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,12 @@ pub async fn bootstrap_db(sync_ctx: &mut SyncContext) -> Result<()> {
sync_ctx.sync_db_if_needed(info.current_generation).await?;
// when sync_ctx is initialised, we set durable_generation to 0. however, once
// sync_db is called, it should be > 0.
assert!(sync_ctx.durable_generation > 0, "generation should be > 0");
if sync_ctx.durable_generation == 0 {
tracing::error!(
"generation should be > 0, got: {}",
sync_ctx.durable_generation
);
}
sync_ctx.initial_server_sync = true;
}
Ok(())
Expand Down
Loading