https://bugs.openldap.org/show_bug.cgi?id=9920
--- Comment #34 from Howard Chu hyc@openldap.org --- (In reply to kero from comment #33)
Thank you very much, Howard, for the great work. It works nearly perfectly now.
However, I still notice some MDB_BAD_DBI errors when using my program. They are rare but still there and triggered by the multiple indexing threads, probably also while reading the database. I haven't closed the DBI.
MDB_BAD_DBI: The specified DBI handle was closed/changed unexpectedly
That sounds like an unrelated issue. Does the problem disappear when you disable encryption?