Stefano Cossu wrote:
> Hello,
> I'd like to be able to know if a LMDB transaction is active, valid, dirty, 
> read-only, etc.

Why? There is no valid reason for these details to be exposed to LMDB callers. 
All LMDB users need to
know is whether they have created a valid txn, and whether they want to abort 
it or commit it.

>>From the documentation I read that such information is in mt_flags of the 
>>mdb_txn structure, which is opaque. I don't see any function exposing 
>>mt_flags. Is there any other way to read that information?

No. Nor are the flag definitions public.

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

Reply via email to