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

Re: LMDB mdb_txn_begin parent in other thread



Abilio Marques wrote:
> Hello,
> 
> I read the documentation for the mdb_txn_begin function, and the note reads "a transaction and its cursors must only be used by a single thread". Does this rule
> also apply to being a parent for another thread transaction?

Yes.

> I gave it a quick shot, and it seems to work for me, but I'm not sure if I'm breaking the rules. Can anybody confirm this?

Yes, you are breaking the rules.

> 
> Best,
> Abilio


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