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:
3708132
)
ITS#8412 fix NEXT_DUP after cursor_del
author
Howard Chu
<hyc@openldap.org>
Tue, 26 Apr 2016 11:52:21 +0000
(12:52 +0100)
committer
Howard Chu
<hyc@openldap.org>
Tue, 26 Apr 2016 11:52:21 +0000
(12:52 +0100)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
e62ca62
..
72294a7
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-6417,7
+6417,8
@@
mdb_cursor_next(MDB_cursor *mc, MDB_val *key, MDB_val *data, MDB_cursor_op op)
MDB_node *leaf;
int rc;
- if (mc->mc_flags & C_EOF) {
+ if ((mc->mc_flags & C_EOF) ||
+ ((mc->mc_flags & C_DEL) && op == MDB_NEXT_DUP)) {
return MDB_NOTFOUND;
}
if (!(mc->mc_flags & C_INITIALIZED))