Scroll to navigation

MONGOC_SERVER_DESCRIPTION_ISMASTER(3) Library Functions Manual MONGOC_SERVER_DESCRIPTION_ISMASTER(3)

NAME

mongoc_server_description_ismaster() - The client or client pool periodically runs an "isMaster" command on each server, to update its view of the MongoDB deployment. Use mongoc_client_get_server_descriptions() and mongoc_server_description_ismaster() to get the most recent "isMaster" response.

SYNOPSIS


const bson_t * mongoc_server_description_ismaster (const mongoc_server_description_t *description);

PARAMETERS

description
A mongoc_server_description_t

DESCRIPTION

The client or client pool periodically runs an isMaster command on each server, to update its view of the MongoDB deployment. Use mongoc_client_get_server_descriptions(3) and mongoc_server_description_ismaster(3) to get the most recent "isMaster" response.

RETURNS

A reference to a BSON document, owned by the server description. The document is empty if the driver is not connected to the server.

COLOPHON

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
2016‐10‐12 MongoDB C Driver