https://bugs.openldap.org/show_bug.cgi?id=10562
--- Comment #1 from Dan Shearer dan@shearer.org --- I suppose a complete fix might be to add a new mode, something like MDB_RDONLY_CLIENT. This would not touch the lockfile at all, but unlike all other LMDB reads, it would check every time if a page it has just read could have been recycled and if so, tells the client who can then retry. This could be refined to be more efficient, but in principle it makes this new mode validate all reads. We aren't opening up security holes while also being less surprising.
Could this work?
-- Dan Shearer dan@shearer.org / https://shearer.org