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
label
Text of the label with a size of up to MCO_CFG_TL_PAGE_BUFFER_SIZE (64*1024),
defined in mcocfg.h.
label_id
Pointer to the ID of the current label, or null (0) if the generated label_id
is not needed.
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
MCO_E_TL_NOT_STARTED
MCO_E_TL_LOG_NOT_OPENED
MCO_E_TL_PIPE_LOST
MCO_E_TL_PIPE_TERM
The reader returned from the function mco_translog_iterate()
before the log was finished. It terminated logging by returning a value other than
MCO_S_OK to the callback function.
MCO_E_TL_IO_ERROR