isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 0f6362f2e2ecefa822c05854b2e48fa5638f96dc
parent 69118d25ecb089d083b97cf978047590a5b86e5b
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Fri,  4 Feb 2022 19:28:34 +0100

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.

Diffstat:
Msrc/sync_state.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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];