GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MONGOC_TOPOLOGY_DESCRIPTION_HAS_READABLE_SERVER(3) libmongoc MONGOC_TOPOLOGY_DESCRIPTION_HAS_READABLE_SERVER(3)

bool
mongoc_topology_description_has_readable_server (

const mongoc_topology_description_t *td, const mongoc_read_prefs_t *prefs);


Determines if the topology has a readable server available. Servers are filtered by the given read preferences only if the driver is connected to a replica set, otherwise the read preferences are ignored. This function uses the driver's current knowledge of the state of the MongoDB server or servers it is connected to; it does no I/O and it does not block.

  • td: A mongoc_topology_description_t.
  • read_prefs: A mongoc_read_prefs_t or NULL for default read preferences.

True if there is a known server matching prefs.

SEE ALSO:

Introduction to Application Performance Monitoring



MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.