mco_translog_flush

This function flushes the file system buffers of a log file. It has no purpose if the MCO_TRANSLOG_SYNC_INSTANTLY flag is used.

For an overview see page TL Applications

Prototype

 
    MCO_RET	mco_translog_flush(	mco_db_h db )
 

Arguments

db Database connection handle

Description

This function flushes the file system buffers of a log file. Note: It has no effect if the flag MCO_TRANSLOG_SYNC_INSTANTLY is used.

Return Codes

MCO_S_OK File system buffers flushed 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 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

Disk IO error.

Files

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