mongoc_uri_get_read_prefs - Man Page
- WARNING:
Deprecated since version 1.2.0: This function is deprecated and should not be used in new code.
Please use mongoc_uri_get_read_prefs_t() in new code.
Synopsis
const bson_t * mongoc_uri_get_read_prefs (const mongoc_uri_t *uri);
Parameters
- uri: A mongoc_uri_t.
Description
Fetches a bson document containing read preference tag information from a URI. Note that this does not include the read preference mode.
Returns
Returns a bson document that should not be modified or freed if uri has read preferences, otherwise NULL.
Author
MongoDB, Inc
Copyright
2017-present, MongoDB, Inc
Info
Nov 08, 2023 1.25.1 libmongoc