MONGOC_BULK_OP...CLIENT_SESSION(3)
π MONGOC_BULK_OP...CLIENT_SESSION(3) π
okay so bestie, welcome to the libmongoc page for MONGOC_BULK_OP...CLIENT_SESSION(3) β yes the title is a whole mouthful, but it's literally just the function that hands a bulk operation its own client session. no cap, it's giving "short but crucial." π«Ά
β¨ SYNOPSIS β¨
void
mongoc_bulk_operation_set_client_session (
mongoc_bulk_operation_t *bulk,
mongoc_client_session_t *client_session);
So what does this icon do? It sets an explicit client session to use for the bulk operation. That's the whole vibe. π
π¨ It is an error to use a session for unacknowledged writes. Like, don't do it β the docs said error, and we listen. periodt.
π PARAMETERS π
bulkβ Amongoc_bulk_operation_t. The bulk operation in question, the main character of this whole function. πclient_sessionβ Amongoc_client_session_t. It must be derived from the samemongoc_client_tasbulk. No mixing clients, bestie β keep it in the same family tree. π³
π SEE ALSO π
mongoc_client_start_session()β if you need to start a session first, that's the one to peek at. iykyk.
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, fr fr. this lil beauty is from version 2.5.6, dated Oct 09 β mwah, slay, 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