Skip to content
Snippets Groups Projects
Commit 9d6c973f authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Simpler mdb_txn_commit().

mt_env is always set.
Commit(mt_child) resets mt_child, so parent need not.
parent ee06adb3
No related branches found
No related tags found
No related merge requests found
......@@ -3287,12 +3287,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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment