DOKK / manpages / debian 10 / libmongoc-doc / mongoc_read_prefs_get_max_staleness_seconds.3.en
MONGOC_READ_PREFS_GET_MAX_STALENESS_SECONDS(3) MongoDB C Driver MONGOC_READ_PREFS_GET_MAX_STALENESS_SECONDS(3)

mongoc_read_prefs_get_max_staleness_seconds - mongoc_read_prefs_get_max_staleness_seconds()

int64_t
mongoc_read_prefs_get_max_staleness_seconds (

const mongoc_read_prefs_t *read_prefs);


read_prefs: A mongoc_read_prefs_t.

Clients estimate the staleness of each secondary, and select for reads only those secondaries whose estimated staleness is less than or equal to maxStalenessSeconds. The default is MONGOC_NO_MAX_STALENESS.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0