Man page - mongoc_client_session_get_server_id(3)

Packages contas this manual

Manual

MONGOC_CLIENT_SESSION_GET_SERVER_ID(3) libmongoc MONGOC_CLIENT_SESSION_GET_SERVER_ID(3)

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.

session: A mongoc_client_session_t.

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

MongoDB, Inc

2009-present, MongoDB, Inc.

December 18, 2025 1.30.4