Леонид Юрьев (Leonid Yuriev) 51789f3605 mdbx: fix put(MDBX_UPSERT+MDBX_ALLDUPS) for case of replacement all values of a single key inside dupsorted subDb (backport).
Fixed cursor_put_nochecklen() internals for case when dupsort'ed named subDb
contains a single key with multiple values (aka duplicates), which are replaced
with a single value by put-operation with the `MDBX_UPSERT+MDBX_ALLDUPS` flags.

In this case, the database becomes completely empty, without any pages.
However exactly this condition was not considered and
thus wasn't handled correctly.

Fixes https://gitflic.ru/project/erthink/libmdbx/issue/8

Thanks Masatoshi Fukunaga <https://gitflic.ru/user/mah0x211> for reporting.
2023-02-13 21:27:55 +03:00
..
2022-11-10 13:07:28 +03:00
2022-01-17 11:06:14 +03:00
2022-01-17 11:06:14 +03:00
2022-01-17 11:06:14 +03:00
2022-01-17 11:06:14 +03:00
2022-01-17 11:06:14 +03:00
2022-01-17 11:06:14 +03:00