logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

bool

Author

       MongoDB, Inc

Parameters

td: A mongoc_topology_description_t.

Returns

       True if there is a known writable server.

       SEEALSO:IntroductiontoApplicationPerformanceMonitoring

Synopsis

          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.

See Also