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.