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:
a3b3482
)
ITS#7515 Fix mdb_page_unspill() in nested txn.
author
Hallvard Furuseth
<hallvard@openldap.org>
Mon, 23 Sep 2013 18:13:27 +0000
(20:13 +0200)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Mon, 23 Sep 2013 18:13:27 +0000
(20:13 +0200)
Malloc a page in this txn, not in a parent.
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
84429ee
..
21d11b9
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-1818,7
+1818,7
@@
mdb_page_unspill(MDB_txn *tx0, MDB_page *mp, MDB_page **ret)
if (env->me_flags & MDB_WRITEMAP) {
np = mp;
} else {
- np = mdb_page_malloc(tx
n
, num);
+ np = mdb_page_malloc(tx
0
, num);
if (!np)
return ENOMEM;
if (num > 1)