mco_translog_truncate

This function truncates the log file and begins logging anew. Its effect is the same as a stop/start sequence, but is more convenient.

For an overview see page TL Applications

Prototype

 
    MCO_RET	mco_translog_truncate(	mco_db_h db )
 

Arguments

db Database connection handle

Description

This function truncates the log file and begins logging anew. It must be called after first storing a database save-point.

Return Codes

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_UNSUPPORTED This function is not applicable if log was started using a pipe.
MCO_E_TL_IO_ERROR Disk IO error.

Files

Header file:
mcolog.h
Source file:
mcolog.c
Library:
libmcolog.a