uint32_t
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 MONGOC_CLIENT_SESSION_GET_SERVER_ID(3)
Parameters
• session: A mongoc_client_session_t.
Returns
A server ID or 0 if this mongoc_client_session_t is not pinned.
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.
