This function stores a label in the log file.
MCO_RET mco_translog_label( mco_db_h db, const char* label, int * label_id )
db | Database connection handle |
label |
Text of the label with size of up to |
label_id |
Pointer to the id of current label or Null (0) if the generated |
This function stores a label in the log file. The TL runtime generates an integer label identifier and returns its value in
label_id
. (See the description of themco_translog_apply()
API for how labels can be used to partially restore the database.)
MCO_S_OK | The label was written successfully. |
MCO_E_TL_NOT_STARTED |
Transaction logging was not started. |
MCO_E_TL_LOG_NOT_OPENED |
The log file could not be opened. |
MCO_E_TL_PIPE_LOST |
All connections to a pipe were closed and its data was lost. |
MCO_E_TL_PIPE_TERM |
Reader returned from function |
MCO_E_TL_IO_ERROR |
Disk IO error. |