https://bugs.openldap.org/show_bug.cgi?id=10212
Issue ID: 10212 Summary: read-only tools may use wrong meta page Product: LMDB Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
On a quiescent database that's only used for read-only txns, the txnid won't be initialized so it remains set to zero. Then only meta page zero will get used, even if page one is newer. Thus all information retrieved will be stale by one txn.
https://bugs.openldap.org/show_bug.cgi?id=10212
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #1 from Howard Chu hyc@openldap.org --- Fixed in git
https://bugs.openldap.org/show_bug.cgi?id=10212
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- re0.9:
Commits: 37829ce4 by Howard Chu at 2024-05-02T16:33:14+01:00 ITS#10212 LMDB: init txnid for read-only DBs
d83d6b4e by Howard Chu at 2024-05-03T20:44:48+01:00 ITS#10212 LMDB: better fix
https://bugs.openldap.org/show_bug.cgi?id=10212
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |0.9.33