Clarify mdb_dbi_open doc

The concurrency restriction is on threads within a single process.
Multiple processes can use mdb_dbi_open without affecting each other.
vl32b
Howard Chu 10 years ago
parent 03ddbcf37d
commit 9cc04f604f
  1. 6
      libraries/liblmdb/lmdb.h

@ -1042,9 +1042,9 @@ int mdb_txn_renew(MDB_txn *txn);
* After a successful commit the * After a successful commit the
* handle will reside in the shared environment, and may be used * handle will reside in the shared environment, and may be used
* by other transactions. This function must not be called from * by other transactions. This function must not be called from
* multiple concurrent transactions. A transaction that uses this function * multiple concurrent transactions in the same process. A transaction
* must finish (either commit or abort) before any other transaction may * that uses this function must finish (either commit or abort) before
* use this function. * any other transaction in the process may use this function.
* *
* To use named databases (with name != NULL), #mdb_env_set_maxdbs() * To use named databases (with name != NULL), #mdb_env_set_maxdbs()
* must be called before opening the environment. Database names * must be called before opening the environment. Database names

Loading…
Cancel
Save