mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Don't touch any other opattrs when updating contextCSN
This commit is contained in:
parent
d84d5e98fb
commit
59ff8cc795
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user