mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#10396 lmdb: fix mdb_cursor_del0 with multiple DUPSORT cursors
Use the correct stack index when adjusting other cursors pointing to the affected page and the DB has a subDB. Broken in ITS#8406.
This commit is contained in:
parent
f7c1754e36
commit
c47b113674
1 changed files with 1 additions and 1 deletions
|
|
@ -8608,7 +8608,7 @@ mdb_cursor_del0(MDB_cursor *mc)
|
|||
goto fail;
|
||||
}
|
||||
if (m3->mc_xcursor && !(m3->mc_flags & C_EOF)) {
|
||||
MDB_node *node = NODEPTR(m3->mc_pg[m3->mc_top], m3->mc_ki[m3->mc_top]);
|
||||
MDB_node *node = NODEPTR(m3->mc_pg[mc->mc_top], m3->mc_ki[mc->mc_top]);
|
||||
/* If this node has dupdata, it may need to be reinited
|
||||
* because its data has moved.
|
||||
* If the xcursor was not initd it must be reinited.
|
||||
|
|
|
|||
Loading…
Reference in a new issue