mco_rollback_buf_enable

Enable a rollback buffer for real-time transaction.

Prototype

 

    MCO_RET mco_rollback_buf_enable(mco_db_h db, mco_bool enable);

 
 

Arguments

db The database handle that was established by mco_db_connect()
enable boolean, enable/disable rollback buffer

Description

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.

Return Codes

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