Don't check LEAF2 pages for subnodes

incre
Howard Chu 11 years ago
parent 4009c9ae65
commit 342cd72f25
  1. 3
      libraries/liblmdb/mdb.c

@ -8139,7 +8139,9 @@ mdb_env_cwalk(mdb_copy *my, pgno_t pg)
unsigned n; unsigned n;
mp = mc.mc_pg[mc.mc_top]; mp = mc.mc_pg[mc.mc_top];
n = NUMKEYS(mp); n = NUMKEYS(mp);
if (IS_LEAF(mp)) { if (IS_LEAF(mp)) {
if (!IS_LEAF2(mp)) {
for (i=0; i<n; i++) { for (i=0; i<n; i++) {
ni = NODEPTR(mp, i); ni = NODEPTR(mp, i);
if (ni->mn_flags & F_BIGDATA) { if (ni->mn_flags & F_BIGDATA) {
@ -8176,6 +8178,7 @@ mdb_env_cwalk(mdb_copy *my, pgno_t pg)
toggle = my->mc_toggle; toggle = my->mc_toggle;
} }
} }
}
} else { } else {
mc.mc_ki[mc.mc_top]++; mc.mc_ki[mc.mc_top]++;
if (mc.mc_ki[mc.mc_top] < n) { if (mc.mc_ki[mc.mc_top] < n) {

Loading…
Cancel
Save