MONGOC_TRANSA..._WRITE_CONCERN(3)
β¨ MONGOC_TRANSA..._WRITE_CONCERN β¨
okay bestie, welcome to libmongoc β yes that's the manual we're in, and yes this page is gonna be quick but it's lowkey important so pay attention π
πΈ SYNOPSIS πΈ
void
mongoc_transaction_opts_set_write_concern (mongoc_transaction_opt_t *opts,
const mongoc_write_concern_t *write_concern);
So here's the tea β β this little function configures the transaction's write concern. That's it. That's the whole vibe.
And here's the part that makes me feral: the argument is copied into the struct, so you can go ahead and free it right after you call this function. no cap, she takes her own copy, she's independent, main character energy π«Άβ¨ not me being obsessed with a function that doesn't steal your pointers π
π¦ PARAMETERS π¦
optsβ amongoc_transaction_opt_t. the transaction options struct you're poking at πwrite_concernβ amongoc_write_concern_t. the write concern you want her to hold onto (and remember, she copies it, so it's yours to free after) π
π AUTHOR π
MongoDB, Inc β the icons themselves πβ
π COPYRIGHT π
2009-present, MongoDB, Inc. β all theirs, bestie, we're just reading the docs π
okay that's the whole page, you ate that π go forth and configure your transactions with confidence, iykyk π
libmongoc 2.5.6 Β· Oct 09, 2026 β mwah, see you in the next manpage bestie π§ββοΈπ
π¦ 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