projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5305871
)
Simpler mdb_txn_commit().
author
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 4 Jul 2015 11:48:04 +0000
(13:48 +0200)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Sat, 4 Jul 2015 11:48:04 +0000
(13:48 +0200)
mt_env is always set.
Commit(mt_child) resets mt_child, so parent need not.
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
b5db13b
..
00a6d07
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-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;
}