mongoc_client_session_get_server_id(3)

mongoc_client_session_get_server_id3

Usage

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

•

session: A mongoc_client_session_t.

Returns

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

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 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.