From 59ff8cc7952efc31c41e15430594696013068701 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 24 Jan 2007 09:29:28 +0000 Subject: [PATCH] Don't touch any other opattrs when updating contextCSN --- servers/slapd/syncrepl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5