mongoc_client_session_get_server_id - Man Page

mongoc_client_session_get_server_id()

Synopsis

uint32_t
mongoc_client_session_get_server_id (const mongoc_client_session_t *session);

Get the "server ID" of the mongos this mongoc_client_session_t is pinned to.

Parameters

Returns

A server ID or 0 if this mongoc_client_session_t is not pinned.

Author

MongoDB, Inc

Info

Feb 04, 2021 1.17.4 libmongoc