ignore graves in sanity check

This commit is contained in:
Damien Elmes 2021-06-30 09:31:02 +10:00
parent 0f7a230fd8
commit 3ee18fb854
2 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,10 @@ impl SqliteStorage {
cards: self.table_count("cards")?,
notes: self.table_count("notes")?,
revlog: self.table_count("revlog")?,
graves: self.table_count("graves")?,
// 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,
notetypes: self.table_count("notetypes")?,
decks: self.table_count("decks")?,
deck_config: self.table_count("deck_config")?,

View File

@ -150,6 +150,7 @@ impl SyncServer for LocalServer {
async fn sanity_check(&mut self, mut client: SanityCheckCounts) -> Result<SanityCheckResponse> {
client.counts = Default::default();
client.graves = 0;
let server = self.col.storage.sanity_check_info()?;
Ok(SanityCheckResponse {
status: if client == server {