From fadf75a9cb2764f3797abb0c3c710e47101a5d51 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 5 May 2012 19:41:45 -0700 Subject: [PATCH] Further clarification of mdb_open() --- libraries/libmdb/mdb.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/libmdb/mdb.h b/libraries/libmdb/mdb.h index 45f7704903..bcf36659c4 100644 --- a/libraries/libmdb/mdb.h +++ b/libraries/libmdb/mdb.h @@ -582,9 +582,10 @@ int mdb_txn_renew(MDB_txn *txn); /** @brief Open a database in the environment. * - * The database handle may be discarded by calling #mdb_close(). Only - * one thread at a time may call this function; it is not mutex-protected in - * a read-only transaction. + * The database handle may be discarded by calling #mdb_close(). The + * database handle resides in the shared environment, it is not owned + * by the given transaction. Only one thread should call this function; + * it is not mutex-protected in a read-only transaction. * @param[in] txn A transaction handle returned by #mdb_txn_begin() * @param[in] name The name of the database to open. If only a single * database is needed in the environment, this value may be NULL. -- 2.39.5