From: Ondřej Kuzník Date: Thu, 26 Aug 2021 14:58:36 +0000 (+0100) Subject: ITS#9641 Grab a new local csn for failed ops X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17394f380a6223edfbed531f8d52e05db0b9af5b;p=thirdparty%2Fopenldap.git ITS#9641 Grab a new local csn for failed ops --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index bff7e22e62..8fd0faaa39 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1584,7 +1584,7 @@ accesslog_response(Operation *op, SlapReply *rs) * Make sure we have a CSN before we release li_op_rmutex to preserve * ordering */ - if ( BER_BVISEMPTY( &op->o_csn ) ) { + if ( !success || BER_BVISEMPTY( &op->o_csn ) ) { slap_get_csn( &op2, &op2.o_csn, 1 ); } else { if ( !( lo->mask & LOG_OP_WRITES ) ) {