https://bugs.openldap.org/show_bug.cgi?id=10575
Issue ID: 10575 Summary: MDB_WRITEMAP commit fails on Windows without MDB_NOSYNC on 1.0.1 Product: LMDB Version: 1.0.1 Hardware: x86_64 OS: Windows Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: github@nicwatson.org Target Milestone: ---
Created attachment 1194 --> https://bugs.openldap.org/attachment.cgi?id=1194&action=edit reproducer
On Windows, an environment opened with MDB_WRITEMAP cannot commit a write transaction unless MDB_NOSYNC or MDB_NOMETASYNC is also set. mdb_txn_commit() fails with ERROR_INVALID_HANDLE.
See attached for reproducer.
This does not impact Linux, MacOS, or the .9.* series.
https://bugs.openldap.org/show_bug.cgi?id=10575
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.0.2 Keywords|needs_review | Status|UNCONFIRMED |RESOLVED Assignee|bugs@openldap.org |hyc@openldap.org Resolution|--- |TEST
--- Comment #1 from Howard Chu hyc@openldap.org --- Fixed in 700e10f91a65fae69520301926fb9819f16d292f
https://bugs.openldap.org/show_bug.cgi?id=10575
--- Comment #2 from Howard Chu hyc@openldap.org --- For reference, this was broken by dfb3bbed656132456001c5aaca246fd4430e5ef5 for ITS#9017, and only partly fixed in e2b82098fa592b20cb3ba79ddbf28f2b2a692e39 for ITS#9618
https://bugs.openldap.org/show_bug.cgi?id=10575
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- mdb.master3:
• 700e10f9 by Howard Chu at 2026-08-19T14:58:16+01:00 ITS#10575 lmdb: fix write_meta on Windows with WRITEMAP
mdb.RE/1.0:
• e831cba0 by Howard Chu at 2026-08-19T14:58:59+01:00 ITS#10575 lmdb: fix write_meta on Windows with WRITEMAP