https://bugs.openldap.org/show_bug.cgi?id=10521
Issue ID: 10521 Summary: read-only transaction under a read-only transaction Product: LMDB Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: liblmdb Assignee: bugs@openldap.org Reporter: bhargavabhat@gmail.com Target Milestone: ---
Since the fix to #10395 was merged, I see that we can create a read-only transaction as a child of another read-only transaction. But the comment in mdb_txn_begin() says
/* Nested transactions: * Only write txns may have nested txns; * if the nested txn is a write txn there may only be 1, no writemap; * if the nested txn is a read txn there may be arbitrarily many. */
I interpret the first statement above as "read-only transaction can't be a parent of another transaction". Is my interpretation correct?
https://bugs.openldap.org/show_bug.cgi?id=10521
--- Comment #1 from Howard Chu hyc@openldap.org --- Yes, it looks like this commit broke that too. 10161b20fef
https://bugs.openldap.org/show_bug.cgi?id=10521
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
https://bugs.openldap.org/show_bug.cgi?id=10521
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.0.0 Keywords|needs_review | Assignee|bugs@openldap.org |hyc@openldap.org
https://bugs.openldap.org/show_bug.cgi?id=10521
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- mdb.RE/1.0:
• 6e866d92 by Howard Chu at 2026-06-10T20:34:05+01:00 ITS#10521 LMDB: fix mdb_txn_begin
• 7bcb4d05 by Howard Chu at 2026-06-10T20:42:25+01:00 ITS#10521 LMDB: more for prev commit
mdb.master3:
• 962f072a by Howard Chu at 2026-06-10T20:32:41+01:00 ITS#10521 LMDB: fix mdb_txn_begin
• a06bcbbd by Howard Chu at 2026-06-10T20:42:09+01:00 ITS#10521 LMDB: more for prev commit
https://bugs.openldap.org/show_bug.cgi?id=10521
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED