From: Howard Chu Date: Wed, 24 Jan 2007 09:29:28 +0000 (+0000) Subject: Don't touch any other opattrs when updating contextCSN X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~154 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=59ff8cc7952efc31c41e15430594696013068701;p=openldap Don't touch any other opattrs when updating contextCSN --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index e37181370c..5068b9928d 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -2286,7 +2286,7 @@ syncrepl_updateCookie( Modifications mod = { { 0 } }; struct berval vals[ 2 ]; - int rc; + int rc, flags; slap_callback cb = { NULL }; SlapReply rs_modify = {REP_RESULT}; @@ -2314,7 +2314,10 @@ syncrepl_updateCookie( /* update contextCSN */ op->o_msgid = SLAP_SYNC_UPDATE_MSGID; op->orm_modlist = &mod; + flags = SLAP_DBFLAGS( op->o_bd ); + SLAP_DBFLAGS( op->o_bd ) |= SLAP_DBFLAG_NOLASTMOD; rc = be->be_modify( op, &rs_modify ); + SLAP_DBFLAGS( op->o_bd ) = flags; op->o_msgid = 0; if ( rs_modify.sr_err == LDAP_SUCCESS ) {