MONGOC_READ_P...LENESS_SECONDS(3)
π¦ MONGOC_READ_P...LENESS_SECONDS(3) β libmongoc π¦
okay so bestie, this is the libmongoc page for setting the max staleness seconds on a read preference. tiny signature, very main character energy. π
β¨ SYNOPSIS β¨
here's the exact function signature β copy it exactly, no freestyling:
void
mongoc_read_prefs_set_max_staleness_seconds (mongoc_read_prefs_t *read_prefs,
int64_t max_staleness_seconds);
π PARAMETERS π
read_prefsβ amongoc_read_prefs_t. that's the read-prefs object you're updating, bestie.max_staleness_secondsβ a positive integer orMONGOC_NO_MAX_STALENESS. periodt.
π DESCRIPTION π
Sets the maxStalenessSeconds to be used for the read preference. literally the whole point. β¨
Clients estimate the staleness of each secondary, and select for reads only those secondaries whose estimated staleness is less than or equal to maxStalenessSeconds. no cap β that's the rule. π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
π okay bye bestie β this was libmongoc version 2.5.6, dated Oct 09, 2026. slay and stay staleness-aware. π«Ά
π¦ 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