MONGOC_READ_MODE_T(3)
β¨ MONGOC_READ_MODE_T(3) β¨ β Read Preference Modes
okay bestie, so this one is from libmongoc and it's literally the page about read preference modes π it's short, it's sweet, and it's giving "small but mighty" energy. let's get into it π
πΈ SYNOPSIS πΈ
like, here's the whole vibe in code form, copy-pasted with love and zero typos:
typedef enum {
MONGOC_READ_PRIMARY = (1 << 0),
MONGOC_READ_SECONDARY = (1 << 1),
MONGOC_READ_PRIMARY_PREFERRED = (1 << 2) | MONGOC_READ_PRIMARY,
MONGOC_READ_SECONDARY_PREFERRED = (1 << 2) | MONGOC_READ_SECONDARY,
MONGOC_READ_NEAREST = (1 << 3) | MONGOC_READ_SECONDARY,
} mongoc_read_mode_t;
that's the whole roster β five members, no more, no less π
π¦ DESCRIPTION π¦
this enum is the little icon that tells your reads how they should be dispatched β¨ like, where do you want these reads to go, bestie? it's literally the read-preference switchboard.
the default is MONGOC_READ_PRIMARY β that's the one you get if you don't say anything, the main character of read modes π
and for the full lore on what Read Preferences actually mean, pls go see the MongoDB website β that's where the description lives. not here. this page is just the enum, and honestly? respect the minimalism π«Ά
π AUTHOR π
MongoDB, Inc β yeah, they made it π
π COPYRIGHT π
2009-present, MongoDB, Inc. π
that's the whole page, bestie β short, iconic, and fully documented. now go dispatch some reads responsibly π β¨
version 2.5.6, dated Oct 09, 2026 β mwah, see you in the next manpage π
π¦ 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