mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
Fix rebalance when collapsing root page
When fixing other cursors, must also fix their depth.
This commit is contained in:
parent
cb1cc64831
commit
e31d748dbe
@ -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…
Reference in New Issue
Block a user