mongoc_client_session_in_transaction - Man Page

mongoc_client_session_in_transaction()

Synopsis

bool
mongoc_client_session_in_transaction (const mongoc_client_session_t *session);

Check whether a multi-document transaction is in progress for this session.

Parameters

Return

Returns true if a transaction was started and has not been committed or aborted, otherwise false.

Author

MongoDB, Inc

Info

Apr 09, 2021 1.17.5 libmongoc