James Anderson wrote:
> the mdb_env_open documentation includes in its note about NOTLS, that
> 
>     A read-only transaction may span threads if the user synchronizes its use.
> 
> to which read-only operations would this constraint apply?

It depends.

The only safe approach is to ensure that a txn is not active simultaneously
in multiple threads.

> mdb_cursor_open and mdb_cursor_close look as if they modify transaction state 
> for write transactions only.
> 
> best regards, from berlin
> 


-- 
  -- 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