From 32a082c24b399cf13a49c598aa0192852987bd9b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 10 Feb 2008 02:10:28 +0000 Subject: [PATCH] Cleanup --- servers/slapd/overlays/syncprov.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index ad8b9bb329..bfd6ffb7fc 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1566,6 +1566,12 @@ syncprov_op_response( Operation *op, SlapReply *rs ) char cbuf[LDAP_LUTIL_CSNSTR_BUFSIZE]; int do_check = 0, have_psearches; + /* Don't do any processing for consumer contextCSN updates */ + if ( SLAP_SYNC_SHADOW( op->o_bd ) && + op->o_msgid == SLAP_SYNC_UPDATE_MSGID ) { + return SLAP_CB_CONTINUE; + } + /* Update our context CSN */ cbuf[0] = '\0'; ldap_pvt_thread_rdwr_wlock( &si->si_csn_rwlock ); @@ -1592,13 +1598,6 @@ syncprov_op_response( Operation *op, SlapReply *rs ) } } - /* Don't do any processing for consumer contextCSN updates */ - if ( SLAP_SYNC_SHADOW( op->o_bd ) && - op->o_msgid == SLAP_SYNC_UPDATE_MSGID ) { - ldap_pvt_thread_rdwr_wunlock( &si->si_csn_rwlock ); - return SLAP_CB_CONTINUE; - } - si->si_numops++; if ( si->si_chkops || si->si_chktime ) { if ( si->si_chkops && si->si_numops >= si->si_chkops ) { -- 2.39.5