MONGOC_READ_CONCERN_SET_LEVEL(3)
β¨ mongoc_read_concern_set_level (3) β the libmongoc girlies' edition β¨
okay so bestie, welcome to the mongoc_read_concern_set_level page from the libmongoc manual π
this one's short and sweet and honestly kind of iconic for one specific reason we'll get to in a sec, so grab your iced coffee π and let's gooo.
πΈ SYNOPSIS πΈ
bool
mongoc_read_concern_set_level (mongoc_read_concern_t *read_concern,
const char *level);
like, that's it. two args, one bool. we love a low-effort queen π
π PARAMETERS π
read_concernβ amongoc_read_concern_t. yes, the thing you're setting the level on. your main character struct, if you will πlevelβ the readConcern level you want to use. the vibe you're assigning, fr fr.
π DESCRIPTION π
so what does it do? it sets the read concern level. that's the whole thing, bestie. for the full deets on what levels even are, go peek at mongoc_read_concern_t β this page is not the one to spill that tea π«
now for the good part, the ~lore~ β¨
Beginning in version 1.9.0, this function can now alter the read concern after it's been used in an operation. previously? different story. using the struct with an operation would mark it as "frozen" π₯Ά and calling this function would return false instead of altering the read concern. so back in the day you'd be like "let me just change this" and it'd be like "no β€οΈ". not anymore though β glow-up achieved, we stan progressive relaxation of freezing rules π
so like, to be clear: before 1.9.0 it was frozen-after-use and returned false; from 1.9.0 onward you can alter it post-use. no cap.
π₯ RETURNS π₯
returns true if the read concern level was set. returns false otherwise. simple as that, periodt π
ngl, that false is basically the ghosting you get from a pre-1.9.0 frozen read concern. rude but historically accurate π
π§ AUTHOR π§
MongoDB, Inc β legends, honestly π«Ά
β COPYRIGHT β
2009-present, MongoDB, Inc.
and that's the whole page, bestie!! mwah π hope your read concerns are always set and never frozen. this little gem is from libmongoc version 2.5.6, dated Oct 09, 2026 β okay bye, ily, go compile something cute ππ¦
π¦ 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