[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-technical
Subject:    Re: Two mdb_env_open() on same file/dir? Etc.
From:       Howard Chu <hyc () symas ! com>
Date:       2023-05-18 15:38:57
Message-ID: 1833c429-6743-7cbf-7482-c46ff3849aae () symas ! com
[Download RAW message or body]

Sam Dave wrote:
> Can two or more mdb_env_open() be called on the same file/directory (in same \
> program or multiple programs)?

In the same program: no, read the Caveats http://www.lmdb.tech/doc/
In multiple programs: yes
> 
> Can two or more mdb_dbi_open() be called to open ultimately the same database?

This is explicitly documented \
http://www.lmdb.tech/doc/group__mdb.html#gac08cad5b096925642ca359a6d6f0562a
> 
> What are some ramifications of doing so (and of course working with various \
> readonly/readwrite transactions, etc.) 
> I don't see much written about this in documentation.

Read more carefully.
> 
> - Samuel


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic