commit 0f6362f2e2ecefa822c05854b2e48fa5638f96dc
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Fri Feb 4 19:28:34 2022 +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.

 src/sync_state.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sync_state.c b/src/sync_state.c
index 3f721776..2d3f5333 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];


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to