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:
9cf1749
)
ITS#7793 more for branch key update
author
Howard Chu
<hyc@symas.com>
Mon, 4 Aug 2014 16:26:35 +0000
(09:26 -0700)
committer
Howard Chu
<hyc@symas.com>
Mon, 4 Aug 2014 16:26:35 +0000
(09:26 -0700)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
d8ac040
..
dddfed1
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-6063,7
+6063,9
@@
fix_parent:
if (mc->mc_top && !mc->mc_ki[mc->mc_top]) {
unsigned short top = mc->mc_top;
mc->mc_top--;
- /* slot 0 is always an empty key, needs no update */
+ /* slot 0 is always an empty key, find real slot */
+ while (mc->mc_top && !mc->mc_ki[mc->mc_top])
+ mc->mc_top--;
if (mc->mc_ki[mc->mc_top])
rc2 = mdb_update_key(mc, key);
else