From 4a9f4439be4353441496d89f98307ba1bb8214c7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 26 Jan 2016 13:39:53 +0000 Subject: [PATCH] ITS#8360 tweak for LDAP_TXNs too --- servers/slapd/back-mdb/id2entry.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5