mongoc_transaction_state_t - Man Page

Constants for transaction states

Synopsis

typedef enum {
  MONGOC_TRANSACTION_NONE = 0,
  MONGOC_TRANSACTION_STARTING = 1,
  MONGOC_TRANSACTION_IN_PROGRESS = 2,
  MONGOC_TRANSACTION_COMMITTED = 3,
  MONGOC_TRANSACTION_ABORTED = 4,
} mongoc_transaction_state_t;

Description

These constants describe the current transaction state of a session.

Flag Values

MONGOC_TRANSACTION_NONEThere is no transaction in progress.
MONGOC_TRANSACTION_STARTINGA transaction has been started, but no operation has been sent to the server.
MONGOC_TRANSACTION_IN_PROGRESSA transaction is in progress.
MONGOC_TRANSACTION_COMMITTEDThe transaction was committed.
MONGOC_TRANSACTION_ABORTEDThe transaction was aborted.

Author

MongoDB, Inc

Info

Apr 03, 2024 1.26.2 libmongoc