MONGOC_CLIENT_...PPEND_METADATA(3)
π MONGOC_CLIENT_POOL_APPEND_METADATA(3) π
okay so this is the libmongoc manual page for mongoc_client_pool_append_metadata, and bestie, it's the client-pool twin of mongoc_client_append_metadata() β same energy, but for pools. β¨
πΈ 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. no cap. 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. So the append has to happen before those connections show up, iykyk. π°οΈ
Also note that mongoc_client_append_metadata() cannot be called on a client retrieved from a client pool. That's just not the vibe. π«
π PARAMETERS π
poolβ amongoc_client_pool_t. That's the pool, bestie.nameβ the name of the wrapping driver. It must not be null or an empty string. fr fr, don't try it.versionβ the optional version of the wrapping driver.platformβ the optional information about the current platform, for example configure options or compile flags.
No string argument may contain the substring " / ", which is used as the delimiter between metadata field values. So keep that exact little space-slash-space out of your strings. π
π₯ RETURNS π₯
This function will log an error and return false when one of the following occurs:
- The resulting handshake document would exceed the size limit.
Otherwise, true if the given fields are set successfully. slay. β
π§΅ THREAD SAFETY π§΅
This function is safe to call from multiple threads. Go off, concurrent besties. π§
π SEE ALSO π
mongoc_client_append_metadata()mongoc_handshake_data_append()
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
kisses bestie, this page is serving libmongoc 2.5.6, dated Oct 09, 202 β bye πππ¦
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms