Fix rebalance when collapsing root page

When fixing other cursors, must also fix their depth.
vmware
Howard Chu 12 years ago
parent cb1cc64831
commit e31d748dbe
  1. 2
      libraries/liblmdb/mdb.c

@ -6341,6 +6341,8 @@ mdb_rebalance(MDB_cursor *mc)
if (m3->mc_snum < mc->mc_snum) continue;
if (m3->mc_pg[0] == mp) {
m3->mc_pg[0] = mc->mc_pg[0];
m3->mc_snum = 1;
m3->mc_top = 0;
}
}
}

Loading…
Cancel
Save