https://bugs.openldap.org/show_bug.cgi?id=9524
--- Comment #1 from kriszyp@gmail.com kriszyp@gmail.com --- Created attachment 824 --> https://bugs.openldap.org/attachment.cgi?id=824&action=edit Fix to tolerate missing loose count that is greater than dirty list
This seems to fix the issue. It no longer triggers the MDB_PROBLEM error in the case of removing the last entry. I assume the hazard of this is missing a case where page leaks occur, but I have tried repeated removal of the last entry in a database and it does not seem to cause any continual page leakage (maybe there is a single page that gets leaked on the first time).