https://bugs.openldap.org/show_bug.cgi?id=10024
louis@meilisearch.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |louis@meilisearch.com
--- Comment #4 from louis@meilisearch.com --- Created attachment 1043 --> https://bugs.openldap.org/attachment.cgi?id=1043&action=edit Patch
Hello, I would like to propose a patch for this issue. In short, it sets the `mti_txnid` whenever `MDB_PREVSNAPSHOT` is set, which is important in `mdb_env_open`.
Running the example from kero with this fix outputs:
wtxn0 id=1 0 after write toto contained: titi1 expecting titi1 wtxn1 id=2 1 before write toto contained: titi1 expecting titi1 1 after write toto contained: titi2 expecting titi2 wtxn2 with PREVSNAPSHOT id=2 2 toto contained: titi1, expecting titi1 wtxn3 id=3 3 toto contained: titi2
so this fixes the issue.
Thank you for your work on LMDB, have a nice day.