mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 06:31:11 -05:00
ITS#8310 fix mdb_rebalance cursor fixup
When collapsing root, must adjust entire cursor stack
This commit is contained in:
parent
79b12bbd7b
commit
a90415f301
1 changed files with 2 additions and 2 deletions
|
|
@ -7970,9 +7970,9 @@ mdb_rebalance(MDB_cursor *mc)
|
|||
m3 = &m2->mc_xcursor->mx_cursor;
|
||||
else
|
||||
m3 = m2;
|
||||
if (m3 == mc || m3->mc_snum < mc->mc_snum) continue;
|
||||
if (m3 == mc) continue;
|
||||
if (m3->mc_pg[0] == mp) {
|
||||
for (i=0; i<m3->mc_snum; i++) {
|
||||
for (i=0; i<mc->mc_db->md_depth; i++) {
|
||||
m3->mc_pg[i] = m3->mc_pg[i+1];
|
||||
m3->mc_ki[i] = m3->mc_ki[i+1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue