From: Howard Chu Date: Sun, 6 May 2012 02:41:45 +0000 (-0700) Subject: Further clarification of mdb_open() X-Git-Tag: OPENLDAP_REL_ENG_2_4_32~125^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fadf75a9cb2764f3797abb0c3c710e47101a5d51;p=openldap Further clarification of mdb_open() --- 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.