lmdb: Simpler mdb_txn_commit().

mt_env is always set.
Commit(mt_child) resets mt_child, so parent need not.

Change-Id: Ib8af816a964a4b70fa6fa622b3d9dd463e9460b3
This commit is contained in:
Hallvard Furuseth 2015-07-04 13:48:04 +02:00 committed by Leo Yuriev
parent 82213d732c
commit a6fa632a54

2
mdb.c
View File

@ -3570,7 +3570,7 @@ mdb_txn_commit(MDB_txn *txn)
unsigned i;
MDB_env *env;
if (unlikely(txn == NULL || txn->mt_env == NULL))
if (unlikely(txn == NULL))
return EINVAL;
if (txn->mt_child) {