1MONGOC_CLIENT_POOL_MIN_SIZE(3) libmongoc MONGOC_CLIENT_POOL_MIN_SIZE(3)
2
3
4
6 Deprecated since version 1.9.0: This function is deprecated because
7 its behavior does not match what developers expect from a "minimum
8 pool size", and its actual behavior is likely to hurt performance.
9
10 Applications should not call this function, they should instead ac‐
11 cept the default behavior, which is to keep all idle clients that
12 are pushed into the pool.
13
14
16 void
17 mongoc_client_pool_min_size (mongoc_client_pool_t *pool,
18 uint32_t min_pool_size)
19 BSON_GNUC_DEPRECATED;
20
21 This function sets the maximum number of idle clients to be kept in the
22 pool. Any idle clients in excess of the maximum are destroyed.
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.25.1 Nov 08, 2023 MONGOC_CLIENT_POOL_MIN_SIZE(3)