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

Re: LMDB mdb_dbi_open mystery



Sam Dave wrote:
> Hello,
> 
> The doc for mdb_dbi_open says:
> 
> * This function must not be called from multiple concurrent
> * transactions in the same process. A transaction that uses
> * this function must finish (either commit or abort) before
> * any other transaction in the process may use this function.
> 
> This indicates that each process can only perform one transaction at the same time.

No, it only says you may only call mdb_dbi_open from one transaction at a time.

> This makes sense for write transactions, but wasn't LMDB supposed to support multiple read transactions at the same time?
> 
> I'm a bit confused now. Can you assist?
> 
> Thanks,
> Sam


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