From: Howard Chu Date: Sat, 22 Dec 2007 05:00:38 +0000 (+0000) Subject: ITS#5261 quick fix, don't checkpoint on first write to DB X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~281 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d38ff5403f3191ddaa5bb5e779a5b50d94e7d865;p=openldap ITS#5261 quick fix, don't checkpoint on first write to DB --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 45ae81a7f9..6ed089f3c1 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1607,8 +1607,12 @@ syncprov_op_response( Operation *op, SlapReply *rs ) } if ( si->si_chktime && (op->o_time - si->si_chklast >= si->si_chktime )) { - do_check = 1; - si->si_chklast = op->o_time; + if ( si->si_chklast ) { + do_check = 1; + si->si_chklast = op->o_time; + } else { + si->si_chklast = 1; + } } } ldap_pvt_thread_rdwr_wunlock( &si->si_csn_rwlock );