diff --git a/rslib/src/storage/sync_check.rs b/rslib/src/storage/sync_check.rs index 5427a3fbf..d52d679e6 100644 --- a/rslib/src/storage/sync_check.rs +++ b/rslib/src/storage/sync_check.rs @@ -48,10 +48,7 @@ impl SqliteStorage { cards: self.table_count("cards")?, notes: self.table_count("notes")?, revlog: self.table_count("revlog")?, - // clients on schema 17 and below may send duplicate - // deletion markers, so we can't compare graves until - // the minimum syncing version is schema 18. - graves: 0, + graves: self.table_count("graves")?, notetypes: self.table_count("notetypes")?, decks: self.table_count("decks")?, deck_config: self.table_count("deck_config")?, diff --git a/rslib/src/sync/server.rs b/rslib/src/sync/server.rs index cc55b2764..578b4968c 100644 --- a/rslib/src/sync/server.rs +++ b/rslib/src/sync/server.rs @@ -149,9 +149,13 @@ impl SyncServer for LocalServer { } async fn sanity_check(&mut self, mut client: SanityCheckCounts) -> Result { + let mut server = self.col.storage.sanity_check_info()?; client.counts = Default::default(); + // clients on schema 17 and below may send duplicate + // deletion markers, so we can't compare graves until + // the minimum syncing version is schema 18. client.graves = 0; - let server = self.col.storage.sanity_check_info()?; + server.graves = 0; Ok(SanityCheckResponse { status: if client == server { SanityCheckStatus::Ok