https://bugs.openldap.org/show_bug.cgi?id=8174
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #2 from Howard Chu hyc@openldap.org --- Initial fix in mdb.master3 0280f0310eebeec49869e98f4a56cec88c4b362f
Returns MDB_DBIS_BUSY error if there are other DBIs open when attempting to drop the main DBI.
Otherwise zeroes out both FREE_DBI and MAIN_DBI and blocks the txn from further use. Doesn't zero out other metapage though. Old readers can continue until the next write txn begins, after which they're likely to crash.
Blocking new writers while old readers remain seems unreasonable but it may be the only safe option.