mongoc_read_prefs_set_max_staleness_seconds(3)

mongoc_read_prefs_set_max_staleness_seconds3

Usage

void
mongoc_read_prefs_set_max_staleness_seconds (mongoc_read_prefs_t *read_prefs,
                                             int64_t max_staleness_seconds);

Parameters

•

read_prefs: A mongoc_read_prefs_t.

•

max_staleness_seconds: A positive integer or MONGOC_NO_MAX_STALENESS.

Overview

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.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.