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:
b5ce810
)
ITS#8321 Fix mdb_cursor_set
author
Howard Chu
<hyc@openldap.org>
Mon, 23 Nov 2015 18:30:24 +0000
(18:30 +0000)
committer
Howard Chu
<hyc@openldap.org>
Tue, 24 Nov 2015 15:17:10 +0000
(15:17 +0000)
Always reinit mc_pg[0] if cursor is not C_INITIALIZED
It might have a stale value when using nested txns
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
43bc85d
..
5cddc3d
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-5999,6
+5999,8
@@
mdb_cursor_set(MDB_cursor *mc, MDB_val *key, MDB_val *data,
} else
return MDB_NOTFOUND;
}
+ } else {
+ mc->mc_pg[0] = 0;
}
rc = mdb_page_search(mc, key, 0);