MONGOC_WRITE_C..._SET_WMAJORITY(3)
π MONGOC_WRITE_C..._SET_WMAJORITY(3) β libmongoc edition π
okay bestie, this is the libmongoc manual page for mongoc_write_concern_set_wmajority(). It's giving βset the majority write concernβ main character energy, and we're gonna read it together. π«Ά
β¨ SYNOPSIS β¨
void
mongoc_write_concern_set_wmajority (mongoc_write_concern_t *write_concern,
int32_t wtimeout_msec);
π PARAMETERS π
write_concernβ Amongoc_write_concern_t. That's the lil guy we're editing.wtimeout_msecβ A positiveint32_tor zero. If you need to setwtimeoutwith anint64_t, usemongoc_write_concern_set_wtimeout_int64().
π DESCRIPTION π
This function sets whether the write must have been propagated to a majority of nodes before indicating write success. basically: majority girlies or bust. π
The timeout specifies how long, in milliseconds, the server should wait before indicating that the write has failed.
Important vibe check: this is not the same as a socket timeout. A value of zero may be used to indicate no timeout. π°οΈ
Beginning in version 1.9.0, this function can now alter the write concern after it has been used in an operation. Previously, using the struct with an operation would mark it as "frozen" and calling this function would log a warning instead instead of altering the write concern. yes, βinstead insteadβ is literally in the original β iconic typo behavior, no cap. π
πΈ AUTHOR πΈ
MongoDB, Inc
π¦ COPYRIGHT π¦
2009-present, MongoDB, Inc.
source/version: libmongoc 2.5.6 Β· date: Oct 09, 202 β mwah bestie, go set that majority write concern ππ
π¦ 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