mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-28 01:29:18 -05:00
ITS#8360 tweak for LDAP_TXNs too
This commit is contained in:
parent
4001eb054f
commit
4a9f4439be
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue