Don't touch any other opattrs when updating contextCSN

This commit is contained in:
Howard Chu 2007-01-24 09:29:28 +00:00
parent d84d5e98fb
commit 59ff8cc795

View File

@ -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 ) {