Enable a rollback buffer for real-time transaction.
MCO_RET mco_rollback_buf_enable(mco_db_h db, mco_bool enable);
db | The database handle that was established by mco_db_connect() |
enable | boolean, enable/disable rollback buffer |
Enables/disables a rollback buffer which is mandatory for real-time transactions. A segment with MCO_MEMORY_ASSIGN_ROLLBACK_BUF must be passed to mco_db_open_dev() in advance. Invocation of this API call affects the current connection only.
MCO_S_OK | Success |
MCO_E_TRANS_NOT_CLOSED | Attempt to change rollback mode for an active transaction |
MCO_E_NOTINIT |
Rollback segment was not assigned |