[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LMDB mdb_txn_begin parent in other thread
- To: Abilio Marques <abiliojr@gmail.com>, openldap-technical@openldap.org
- Subject: Re: LMDB mdb_txn_begin parent in other thread
- From: Howard Chu <hyc@symas.com>
- Date: Fri, 29 Mar 2019 19:36:12 +0000
- In-reply-to: <CAEWqYrU6AyKE8wp_XsgDc1yTLikL84JfYMDQ4EnA=es3T-JTnw@mail.gmail.com>
- References: <CAEWqYrU6AyKE8wp_XsgDc1yTLikL84JfYMDQ4EnA=es3T-JTnw@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0 SeaMonkey/2.53
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/