https://bugs.openldap.org/show_bug.cgi?id=10127

--- Comment #2 from [email protected] ---
(In reply to Howard Chu from comment #1)
> As the docs clearly state, a transaction may only be used by one thread at a
> time.
> 
> http://www.lmdb.tech/doc/group__mdb.html#gad7ea55da06b77513609efebd44b26920
> 
> MDB_NOTLS merely allows a read txn to serially be used by other threads at
> different times.

Hi Howard,

Thanks for the response and I really appreciate it. In fact I was a bit
confused about that "Cursors may not span transactions", which is partly why I
decide to explicitly ask this question here.

So to be crystal transparent, even if MDB_NOTLS is set, a cursor opened by a
readonly txn still has to stay with one single thread for its entire lifetime,
an d cannot be used by another thread even at a different time. Is my
understanding correct?

Thanks for the time again!

Best,
Xiaoya

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to