mongoc_client_session_destroy - Man Page
mongoc_client_session_destroy()
Synopsis
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.
Parameters
- session: A mongoc_client_session_t.
Author
MongoDB, Inc
Copyright
2017-present, MongoDB, Inc
Info
Jan 19, 2023 1.23.2 libmongoc