From d38ff5403f3191ddaa5bb5e779a5b50d94e7d865 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 22 Dec 2007 05:00:38 +0000 Subject: [PATCH] ITS#5261 quick fix, don't checkpoint on first write to DB --- servers/slapd/overlays/syncprov.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 ); -- 2.39.5