1MONGOC_CLIENT_POOL_MIN_SIZE(3) MongoDB C Driver MONGOC_CLIENT_POOL_MIN_SIZE(3)
2
3
4
6 mongoc_client_pool_min_size - mongoc_client_pool_min_size()
7
9 void
10 mongoc_client_pool_min_size (mongoc_client_pool_t *pool,
11 uint32_t min_pool_size)
12 BSON_GNUC_DEPRECATED;
13
14 This function sets the maximum number of idle clients to be kept in the
15 pool. Any idle clients in excess of the maximum are destroyed. This
16 function is deprecated because its behavior does not match what devel‐
17 opers expect from a "minimum pool size", and its actual behavior is
18 likely to hurt performance.
19
20 Applications should not call this function, they should instead accept
21 the default behavior, which is to keep all idle clients that are pushed
22 into the pool.
23
25 · pool: A mongoc_client_pool_t.
26
27 · min_pool_size: The number of idle clients to keep in the pool.
28
30 This function is safe to call from multiple threads.
31
32 Subsequent calls to mongoc_client_pool_push respect the new minimum
33 size, and close the least recently used mongoc_client_t if the minimum
34 size is exceeded.
35
37 MongoDB, Inc
38
40 2017-present, MongoDB, Inc
41
42
43
44
451.13.1 Jan 24, 2019 MONGOC_CLIENT_POOL_MIN_SIZE(3)