mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix 5c1ee7f7ba
mdb_cursor_sibling() no longer pops cursor before returning.
This commit is contained in:
parent
5af47adf6b
commit
e545b742e5
@ -6971,9 +6971,9 @@ mdb_drop0(MDB_cursor *mc, int subs)
|
|||||||
rc = mdb_cursor_sibling(mc, 1);
|
rc = mdb_cursor_sibling(mc, 1);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
/* no more siblings, go back to beginning
|
/* no more siblings, go back to beginning
|
||||||
* of previous level. (stack was already popped
|
* of previous level.
|
||||||
* by mdb_cursor_sibling)
|
|
||||||
*/
|
*/
|
||||||
|
mdb_cursor_pop(mc);
|
||||||
for (i=1; i<mc->mc_top; i++)
|
for (i=1; i<mc->mc_top; i++)
|
||||||
mc->mc_pg[i] = mx.mc_pg[i];
|
mc->mc_pg[i] = mx.mc_pg[i];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user