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