mco_translog_start

This function begins logging transactions according to the specified options.

For an overview, see TL Applications

Prototype

    MCO_RET mco_translog_start(mco_db_h db,
                               char const * file_path,
                               mco_TL_start_data_h data);

Arguments

db
Database connection handle.
file_path

Path and file name or disk partition of the log file. If the pipe method is used, this argument specifies the pipe overflow file if it is required (otherwise 0).

data
TL start parameters.

Description

This function begins logging transactions according to the options specified in the argument data.

Return Codes

MCO_S_OK
The TL runtime was initialized successfully.
MCO_E_TL_NOT_INITIALIZED
A TL API function was called when TL was not initialized.
MCO_E_TL_INVAL
An argument value is invalid.
MCO_E_TL_ALREADY_STARTED
Transaction logging was already started.
MCO_E_TL_NOT_ITERABLE
The log file was created without the MCO_TRANSLOG_ITERABLE flag, or an unsupported transaction manager is used.
MCO_E_TL_NO_AUTO_OID
No auto_oid index is declared in the database schema.
MCO_E_TL_PIPE_USED
The pipe is still open by a previous instance of the reader.
MCO_E_TL_IO_ERROR
An input/output error occurred.

Files

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