https://bugs.openldap.org/show_bug.cgi?id=10643
Issue ID: 10643 Summary: DUPSORT page counts remain inflated after deleting a duplicate tree Product: LMDB Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: ledvinap@gmail.com Target Milestone: ---
b048b7e (ITS#9388) updates the parent’s page counts only when the duplicate child tree still contains entries. Whole-set deletion and deletion of the last value skip adjustment.
Fix: subtract counts still in NODEDATA(leaf) after successful mdb_drop0().
AI discovery/fix; This report is fully authored by me.