mongoc_topology_description_has_writable_server(3)

mongoc_topology_description_has_writable_server3

Usage

bool
mongoc_topology_description_has_writable_server (
   const mongoc_topology_description_t *td);

Determines if the topology has a writable server available, such as a primary, mongos, or standalone. 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.

Parameters

•

td: A mongoc_topology_description_t.

Returns

True if there is a known writable server.

SEE ALSO:

Introduction to Application Performance Monitoring

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.