ITS#8360 tweak for LDAP_TXNs too

This commit is contained in:
Howard Chu 2016-01-26 13:39:53 +00:00
parent 4001eb054f
commit 4a9f4439be

View file

@ -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;