https://bugs.openldap.org/show_bug.cgi?id=9496
--- Comment #3 from Nate Pierce nwpierce@gmail.com --- Anyone look into this yet? I made a script to back up through the commit history, rebuild mdb_dump and your test, and run it 10 times - as long as I was able to get it to lose a commit on at least one run, I kept rewinding.
I cannot get your code to fail as of commit ce834559041747a8ae29884d2b82e144adc7600f. Everything at af2f8cc814fabe2814cacb573be3338292f47c0d or later will trigger it.
Tested on Debian 10 (4.0.19-11) and MacOS 11.2.3.