Provided by: libmongoc-doc_1.30.2-1_all bug

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

session: A mongoc_client_session_t.

RETURN

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

AUTHOR

       MongoDB, Inc

COPYRIGHT

       2009-present, MongoDB, Inc.

1.30.2                                            Mar 05, 2025           MONGOC_CLIENT_SESSION_IN_TRANSACTION(3)