mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05: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
1 changed files with 2 additions and 0 deletions
|
|
@ -6341,6 +6341,8 @@ mdb_rebalance(MDB_cursor *mc)
|
||||||
if (m3->mc_snum < mc->mc_snum) continue;
|
if (m3->mc_snum < mc->mc_snum) continue;
|
||||||
if (m3->mc_pg[0] == mp) {
|
if (m3->mc_pg[0] == mp) {
|
||||||
m3->mc_pg[0] = mc->mc_pg[0];
|
m3->mc_pg[0] = mc->mc_pg[0];
|
||||||
|
m3->mc_snum = 1;
|
||||||
|
m3->mc_top = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue