From: Howard Chu Date: Tue, 26 Jan 2016 13:39:53 +0000 (+0000) Subject: ITS#8360 tweak for LDAP_TXNs too X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a9f4439be4353441496d89f98307ba1bb8214c7;p=openldap ITS#8360 tweak for LDAP_TXNs too --- diff --git a/servers/slapd/back-mdb/id2entry.c b/servers/slapd/back-mdb/id2entry.c index d080f3f93e..f9adf002ba 100644 --- a/servers/slapd/back-mdb/id2entry.c +++ b/servers/slapd/back-mdb/id2entry.c @@ -549,9 +549,12 @@ int mdb_txn( Operation *op, int txnop, OpExtra **ptr ) return rc; case SLAP_TXN_COMMIT: rc = mdb_txn_commit( moi->moi_txn ); + if ( rc ) + mdb->mi_numads = 0; op->o_tmpfree( moi, op->o_tmpmemctx ); return rc; case SLAP_TXN_ABORT: + mdb->mi_numads = 0; mdb_txn_abort( moi->moi_txn ); op->o_tmpfree( moi, op->o_tmpmemctx ); return 0;