Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MONGOC_TOPOLO...EADABLE_SERVER(3)  libmongoc MONGOC_TOPOLO...EADABLE_SERVER(3)

SYNOPSIS
	  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 Mon-
       goDB server or servers it is connected to; it does no I/O and  it  does
       not block.

PARAMETERS
        td: A mongoc_topology_description_t.

        read_prefs:  A	 mongoc_read_prefs_t  or NULL for default read prefer-
	 ences.

RETURNS
       True if there is	a known	server matching	prefs.

       SEE ALSO:
	  Introduction to Application Performance Monitoring

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 2025MONGOC_TOPOLO...EADABLE_SERVER(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_topology_description_has_readable_server&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help