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:
3b9f857
)
ITS#8321 fix mdb_cursor_chk()
author
Howard Chu
<hyc@openldap.org>
Mon, 23 Nov 2015 01:10:05 +0000
(
01:10
+0000)
committer
Howard Chu
<hyc@openldap.org>
Mon, 23 Nov 2015 01:40:56 +0000
(
01:40
+0000)
It was reporting spurious errors due to uninit'd cursors
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
451d8d3
..
c4f3c45
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-1673,7
+1673,7
@@
mdb_cursor_chk(MDB_cursor *mc)
MDB_node *node;
MDB_page *mp;
- if (!mc->mc_snum
&&
!(mc->mc_flags & C_INITIALIZED)) return;
+ if (!mc->mc_snum
||
!(mc->mc_flags & C_INITIALIZED)) return;
for (i=0; i<mc->mc_top; i++) {
mp = mc->mc_pg[i];
node = NODEPTR(mp, mc->mc_ki[i]);