mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7594 better fix
Update the subDB cursor, don't invalidate it
This commit is contained in:
parent
65faa5ed7e
commit
3b623d66e1
@ -1636,8 +1636,13 @@ finish:
|
||||
if (m2 == mc || m2->mc_snum < mc->mc_snum) continue;
|
||||
if (m2->mc_pg[mc->mc_top] == mc->mc_pg[mc->mc_top]) {
|
||||
m2->mc_pg[mc->mc_top] = mp;
|
||||
if (mc->mc_db->md_flags & MDB_DUPSORT)
|
||||
m2->mc_xcursor->mx_cursor.mc_flags &= ~C_INITIALIZED;
|
||||
if ((mc->mc_db->md_flags & MDB_DUPSORT) &&
|
||||
m2->mc_ki[mc->mc_top] == mc->mc_ki[mc->mc_top]) {
|
||||
MDB_node *leaf = NODEPTR(mp, mc->mc_ki[mc->mc_top]);
|
||||
if (!(leaf->mn_flags & F_SUBDATA)) {
|
||||
m2->mc_xcursor->mx_cursor.mc_pg[0] = NODEDATA(leaf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user