Provided by: libmongoc-doc_2.2.1-1_all 

SYNOPSIS
mongoc_transaction_state_t
mongoc_client_session_get_transaction_state (const mongoc_client_session_t *session);
Returns the current transaction state for this session.
PARAMETERS
• session: A mongoc_client_session_t <>.
RETURN
Returns a mongoc_transaction_state_t <> that represents the current transaction state.
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 MONGOC_CLIENT_SESSION_GET_TRANSACTION_STATE(3)