mongoc_client_pool_append_metadata - Man Page

Synopsis

bool
mongoc_client_pool_append_metadata (mongoc_client_pool_t *pool,
                                    const char *name,
                                    const char *version,
                                    const char *platform)

This function is identical to mongoc_client_append_metadata() <> except for client pools.

See mongoc_client_append_metadata() <> and mongoc_handshake_data_append() <> for more details.

The updated handshake command applies to the given pool object for connections established after the append took place.

Also note that mongoc_client_append_metadata() <> cannot be called on a client retrieved from a client pool.

Parameters

No string argument may contain the substring " / ", which is used as the delimiter between metadata field values.

Returns

This function will log an error and return false when one of the following occurs:

Otherwise, true if the given fields are set successfully.

Thread Safety

This function is safe to call from multiple threads.

See also:

mongoc_client_append_metadata() <>
mongoc_handshake_data_append() <>

Author

MongoDB, Inc

Info

Apr 17, 2026 2.3.0 libmongoc