1MONGOC_CLIENT_POOL_MIN_SIZE(3)     libmongoc    MONGOC_CLIENT_POOL_MIN_SIZE(3)
2
3
4

NAME

6       mongoc_client_pool_min_size - mongoc_client_pool_min_size()
7
8       WARNING:
9          Deprecated  since version 1.9.0: This function is deprecated because
10          its behavior does not match what developers expect from  a  "minimum
11          pool size", and its actual behavior is likely to hurt performance.
12
13          Applications  should not call this function, they should instead ac‐
14          cept the default behavior, which is to keep all  idle  clients  that
15          are pushed into the pool.
16
17

SYNOPSIS

19          void
20          mongoc_client_pool_min_size (mongoc_client_pool_t *pool,
21                                       uint32_t min_pool_size)
22             BSON_GNUC_DEPRECATED;
23
24       This function sets the maximum number of idle clients to be kept in the
25       pool. Any idle clients in excess of the maximum are destroyed.
26

PARAMETERS

28pool: A mongoc_client_pool_t.
29
30min_pool_size: The number of idle clients to keep in the pool.
31

THREAD SAFETY

33       This function is safe to call from multiple threads.
34
35       Subsequent calls to mongoc_client_pool_push() respect the  new  minimum
36       size,  and close the least recently used mongoc_client_t if the minimum
37       size is exceeded.
38

AUTHOR

40       MongoDB, Inc
41
43       2017-present, MongoDB, Inc
44
45
46
47
481.24.3                           Aug 17, 2023   MONGOC_CLIENT_POOL_MIN_SIZE(3)
Impressum