mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 14:42:10 -05:00
Fix MDB_CURRENT updating for dupsort items
This commit is contained in:
parent
7fdf672041
commit
cfedb365b4
1 changed files with 3 additions and 1 deletions
|
|
@ -5064,8 +5064,10 @@ current:
|
|||
*/
|
||||
if (F_ISSET(flags, MDB_RESERVE))
|
||||
data->mv_data = NODEDATA(leaf);
|
||||
else
|
||||
else if (data->mv_size)
|
||||
memcpy(NODEDATA(leaf), data->mv_data, data->mv_size);
|
||||
else
|
||||
memcpy(NODEKEY(leaf), key->mv_data, key->mv_size);
|
||||
goto done;
|
||||
}
|
||||
mdb_node_del(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue