1MONGOC_TOPOLOGY_DESCRIPTION_HMAOSN_GROECA_DlTAiOBbPLmOEoL_nOSgGEoYRc_VDEERS(C3R)IPTION_HAS_READABLE_SERVER(3)
2
3
4
6 bool
7 mongoc_topology_description_has_readable_server (
8 const mongoc_topology_description_t *td, const mongoc_read_prefs_t *prefs);
9
10 Determines if the topology has a readable server available. Servers are
11 filtered by the given read preferences only if the driver is connected
12 to a replica set, otherwise the read preferences are ignored. This
13 function uses the driver's current knowledge of the state of the Mon‐
14 goDB server or servers it is connected to; it does no I/O and it does
15 not block.
16
18 • td: A mongoc_topology_description_t.
19
20 • read_prefs: A mongoc_read_prefs_t or NULL for default read prefer‐
21 ences.
22
24 True if there is a known server matching prefs.
25
26 SEE ALSO:
27 Introduction to Application Performance Monitoring
28
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.25.1 MONGONCo_vTO0P8O,LO2G0Y2_3DESCRIPTION_HAS_READABLE_SERVER(3)