DOKK / manpages / debian 10 / libmongoc-doc / mongoc_client_session_destroy.3.en
MONGOC_CLIENT_SESSION_DESTROY(3) MongoDB C Driver MONGOC_CLIENT_SESSION_DESTROY(3)

mongoc_client_session_destroy - mongoc_client_session_destroy()

void
mongoc_client_session_destroy (mongoc_client_session_t *session);


End a session, returning its session id to the pool, and free all client resources associated with the session. If a multi-document transaction is in progress, abort it. Does nothing if session is NULL.

See the example code for mongoc_client_session_t.

session: A mongoc_client_session_t.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0