https://bugs.openldap.org/show_bug.cgi?id=9496
--- Comment #12 from Markus markus@objectbox.io --- I was just able to debug into this and thus gathered new info. Inside mdb_txn_renew0, I made some "odd" observations that I wanted to check with you. "Odd" in the sense that it seems that the meta page selection does not consider MDB_PREVSNAPSHOT.
It entered mdb_txn_renew0 with MDB_TXN_RDONLY and ti (MDB_txninfo; env->me_txns) being non-NULL. However, ti->mti_txnid was 0 and thus txn->mt_txnid was set to 0. That's the reason for always selecting the first (index 0) meta page in this code line:
meta = env->me_metas[txn->mt_txnid & 1];
This seems wrong but maybe I missed something?