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:
1c2a588
)
MDB_VL32 fix cursor_unref - ignore cursor with empty stack
author
Howard Chu
<hyc@openldap.org>
Mon, 28 Dec 2015 20:31:09 +0000
(20:31 +0000)
committer
Howard Chu
<hyc@openldap.org>
Mon, 28 Dec 2015 20:31:09 +0000
(20:31 +0000)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
19930fc
..
ae32c98
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-1952,7
+1952,7
@@
static void
mdb_cursor_unref(MDB_cursor *mc)
{
int i;
- if (!mc->mc_pg[0] || IS_SUBP(mc->mc_pg[0]))
+ if (!mc->mc_
snum || !mc->mc_
pg[0] || IS_SUBP(mc->mc_pg[0]))
return;
for (i=0; i<mc->mc_snum; i++)
mdb_page_unref(mc->mc_txn, mc->mc_pg[i]);