# mco_translog_stop

This function terminates transaction logging and closes the log file.

### For an overview see page TL Applications

### Prototype

        MCO_RET	mco_translog_stop(	mco_db_h db )

### Arguments

db | Database connection handle

### Description

This function terminates transaction logging and closes the log file.

### Return Codes

MCO_S_OK | The TL runtime was initialized 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_IO_ERROR | Disk IO error
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 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

Note: The logging process will always be stopped after calling function `mco_translog_stop()` - even if an error occurs.

### Files

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