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 β€” a mongoc_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 🫢

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