GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MONGOC_CLIENT_POOL_MIN_SIZE(3) libmongoc MONGOC_CLIENT_POOL_MIN_SIZE(3)

WARNING:

Deprecated since version 1.9.0: This function is deprecated because its behavior does not match what developers expect from a "minimum pool size", and its actual behavior is likely to hurt performance.

Applications should not call this function, they should instead accept the default behavior, which is to keep all idle clients that are pushed into the pool.



void
mongoc_client_pool_min_size (mongoc_client_pool_t *pool,

uint32_t min_pool_size);


This function sets the maximum number of idle clients to be kept in the pool. Any idle clients in excess of the maximum are destroyed.

  • pool: A mongoc_client_pool_t.
  • min_pool_size: The number of idle clients to keep in the pool.

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.

MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.