mongoc_read_prefs_set_max_staleness_seconds man page

mongoc_read_prefs_set_max_staleness_seconds ā€” mongoc_read_prefs_set_max_staleness_seconds()

Synopsis

void
mongoc_read_prefs_set_max_staleness_seconds (mongoc_read_prefs_t *read_prefs,
                                             int64_t max_staleness_seconds);

Parameters

Description

Sets the maxStalenessSeconds to be used for the read preference. Clients estimate the staleness of each secondary, and select for reads only those secondaries whose estimated staleness is less than or equal to maxStalenessSeconds.

Author

MongoDB, Inc

Info

Nov 17, 2017 1.8.2 MongoDB C Driver