mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-20 13:53:21 -05:00
Simpler mdb_txn_commit().
mt_env is always set. Commit(mt_child) resets mt_child, so parent need not.
This commit is contained in:
parent
5305871585
commit
084d412f9b
1 changed files with 1 additions and 2 deletions
|
|
@ -3349,12 +3349,11 @@ mdb_txn_commit(MDB_txn *txn)
|
|||
unsigned int i;
|
||||
MDB_env *env;
|
||||
|
||||
if (txn == NULL || txn->mt_env == NULL)
|
||||
if (txn == NULL)
|
||||
return EINVAL;
|
||||
|
||||
if (txn->mt_child) {
|
||||
rc = mdb_txn_commit(txn->mt_child);
|
||||
txn->mt_child = NULL;
|
||||
if (rc)
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue