]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9641 Grab a new local csn for failed ops
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 26 Aug 2021 14:58:36 +0000 (15:58 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sun, 5 Sep 2021 14:33:59 +0000 (14:33 +0000)
servers/slapd/overlays/accesslog.c

index bff7e22e6247b4b32904a9e1f884efc6ad3a5e7d..8fd0faaa3939abdff9cefef32e6a44069930b776 100644 (file)
@@ -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 ) ) {