This function truncates the log file and begins logging anew. Its effect is the same as a stop/start sequence, but is more convenient.
MCO_RET mco_translog_truncate( mco_db_h db )
db | Database connection handle |
This function truncates the log file and begins logging anew. It must be called after first storing a database save-point.
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. |