mongoc_client_pool_min_size man page

mongoc_client_pool_min_size ā€” mongoc_client_pool_min_size()

Synopsis

void
mongoc_client_pool_min_size (mongoc_client_pool_t *pool,
                             uint32_t min_pool_size);

This function sets the minimum number of pooled connections kept in mongoc_client_pool_t.

Parameters

Thread Safety

This function is safe to call from multiple threads.

Subsequent calls to mongoc_client_pool_push respect the new minimum size, and close the least recently used mongoc_client_t if the minimum size is exceeded.

Author

MongoDB, Inc

Info

Aug 10, 2017 1.7.0 MongoDB C Driver