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 log file was truncated 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 the log was started using a pipe.
MCO_E_TL_IO_ERROR
Disk I/O error.

Files

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