1MONGOC_READ_PREFS_SET_MAX_STALENEMSOSN_lGSiOEbCCm_OoRNnEDgASoD(c_3P)REFS_SET_MAX_STALENESS_SECONDS(3)
2
3
4
6 void
7 mongoc_read_prefs_set_max_staleness_seconds (mongoc_read_prefs_t *read_prefs,
8 int64_t max_staleness_seconds);
9
11 • read_prefs: A mongoc_read_prefs_t.
12
13 • max_staleness_seconds: A positive integer or MONGOC_NO_MAX_STALENESS.
14
16 Sets the maxStalenessSeconds to be used for the read preference.
17 Clients estimate the staleness of each secondary, and select for reads
18 only those secondaries whose estimated staleness is less than or equal
19 to maxStalenessSeconds.
20
22 MongoDB, Inc
23
25 2017-present, MongoDB, Inc
26
27
28
29
301.25.1 MNOoNvGO0C8_,RE2A0D2_3PREFS_SET_MAX_STALENESS_SECONDS(3)