.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_CLIENT_POOL_MIN_SIZE" "3" "May 07, 2024" "1.27.1" "libmongoc" .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 Deprecated since version 1.9.0: This function is deprecated because its behavior does not match what developers expect from a \(dqminimum pool size\(dq, and its actual behavior is likely to hurt performance. .sp 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. .UNINDENT .UNINDENT .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX void mongoc_client_pool_min_size (mongoc_client_pool_t *pool, uint32_t min_pool_size) BSON_GNUC_DEPRECATED; .EE .UNINDENT .UNINDENT .sp This function sets the \fImaximum\fP number of idle clients to be kept in the pool. Any idle clients in excess of the maximum are destroyed. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBpool\fP: A \fI\%mongoc_client_pool_t\fP\&. .IP \(bu 2 \fBmin_pool_size\fP: The number of idle clients to keep in the pool. .UNINDENT .SH THREAD SAFETY .sp This function is safe to call from multiple threads. .sp Subsequent calls to \fI\%mongoc_client_pool_push()\fP respect the new minimum size, and close the least recently used \fI\%mongoc_client_t\fP if the minimum size is exceeded. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .