[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7515) Nested liblmdb transaction bugs

hyc@symas.com wrote:
> h.b.furuseth@usit.uio.no wrote:
>> Can't use a DBI from an aborted child txn, unlike aborted main txn:
>> $ ./bug  R[cp]      # Create a named DB and put an item there
>> $ ./bug  [[o}g]     # Open that DB in a child, abort, use the DBI
>> 40: mdb_get(txn, dbi, &key, &rdata): Invalid argument
>> $ ./bug  [[o]g]     # Success: Commit instead of abort the child
>> $ ./bug  [o}[g]     # Success: Use the DBI from an aborted main txn
> Sounds like the latter is a different bug - a DBI opened in an aborted txn
> should not be valid after the abort.
This bit is now fixed in mdb.master.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/