From a6fa632a54687215cd7641d4d656c61ed175e093 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 4 Jul 2015 13:48:04 +0200 Subject: [PATCH] lmdb: Simpler mdb_txn_commit(). mt_env is always set. Commit(mt_child) resets mt_child, so parent need not. Change-Id: Ib8af816a964a4b70fa6fa622b3d9dd463e9460b3 --- mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdb.c b/mdb.c index 3f6e4372..72aa9b70 100644 --- a/mdb.c +++ b/mdb.c @@ -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) {