Merge pull request #1424 from fractalcat/thread-safety-doc-update

rados_connect not thread-safe when using nss (documentation)

Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2014-03-11 21:38:40 -07:00
commit 9987e486ad

View File

@ -355,6 +355,9 @@ int rados_ping_monitor(rados_t cluster, const char *mon_id,
*
* @post If this succeeds, any function in librados may be used
*
* @warning This function is not thread-safe if using libnss (built with
* --with-nss); callers must implement their own locking mechanisms.
*
* @param cluster The cluster to connect to.
* @returns 0 on sucess, negative error code on failure
*/