MONGOC_READ_PREFS_GET_HEDGE(3)
π MONGOC_READ_PREFS_GET_HEDGE(3) π
okay so bestie, we're in the libmongoc manual and today's main character is mongoc_read_prefs_get_hedge() β but before we get into it, there's some lore you need π«Ά
β οΈ deprecated since version MongoDB: Server 8.0 β οΈ Hedged reads are deprecated in MongoDB version 8.0 and will be removed in a future release. So likeβ¦ she still works, but she's on her way out, no cap. Use her with that in mind, or better yet, don't be surprised when she leaves the group chat permanently π
β¨ SYNOPSIS β¨
const bson_t *
mongoc_read_prefs_get_hedge (const mongoc_read_prefs_t *read_prefs);
π PARAMETERS π
read_prefsβ amongoc_read_prefs_t. That's it. That's the whole list, she's low maintenance π
π¦ DESCRIPTION π¦
This function fetches any read preference hedge document that has been registered. Like, it goes and pulls up the hedge doc for you. Very demure, very mindful πΈ
β RETURNS β
Returns a bson_t that should not be modified or freed. fr fr β hands off, don't touch it, don't free it, just look at it respectfully π It's not yours to keep bestie, it's giving borrow-not-own energy π
π AUTHOR π
MongoDB, Inc β the icons who brought you this whole thing π«Ά
π COPYRIGHT π
2009-present, MongoDB, Inc. Every single year of it β¨
and that's the tea π hope this helped, slay your read prefs π
libmongoc version 2.5.6 β dated Oct 09, 2026 π signing off, mwah π
π¦ 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