mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
bugfix for mdb_cursor_put with MDB_MULTIPLE
If the variable dkey.mv_size is non-zero, then it means dkey contains some original data which has to be put back in the child db, typically when the child db has just been created. But when using MDB_MULTIPLE, if this variable has not been reset to zero, we may come back to this section and wrongly think that there is some original data to be taken care of.
This commit is contained in:
parent
77001f549b
commit
bbb27cde4a
1 changed files with 2 additions and 0 deletions
|
|
@ -5218,6 +5218,8 @@ put_sub:
|
|||
}
|
||||
}
|
||||
}
|
||||
/* we've done our job */
|
||||
dkey.mv_size = 0;
|
||||
}
|
||||
if (flags & MDB_APPENDDUP)
|
||||
xflags |= MDB_APPEND;
|
||||
|
|
|
|||
Loading…
Reference in a new issue