From 0f6362f2e2ecefa822c05854b2e48fa5638f96dc Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 4 Feb 2022 19:28:34 +0100 Subject: [PATCH] fix tracking of sync record count through placeholder upgrades for now, this is just pedantry, as it merely affects the size of the already oversized { uid => srec } flathash after journal replay. amends 70bad661. --- src/sync_state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sync_state.c b/src/sync_state.c index 3f72177..2d3f533 100644 --- a/src/sync_state.c +++ b/src/sync_state.c @@ -574,6 +574,7 @@ upgrade_srec( sync_vars_t *svars, sync_rec_t *srec ) srec->next = nsrec; if (svars->srecadd == &srec->next) svars->srecadd = &nsrec->next; + svars->nsrecs++; // Move the placeholder to the new entry. int t = (srec->status & S_DUMMY(F)) ? F : N; nsrec->uid[t] = srec->uid[t];