mco_db_recover_all

This function allows an application to explicitly recover any database connections that were not properly closed.

Prototype

    MCO_RET mco_db_recover_all(mco_db_h db);

Arguments

db
The database handle that was established by mco_db_connect().

Description

This function allows an application to explicitly recover any database connections that were not properly closed. Normally a database that was not properly closed (perhaps after a system crash) will be recovered automatically during the mco_db_open_dev().

Return Codes

MCO_S_OK
Database recovered successfully.
MCO_E_DISK_OPEN
Unable to open database log file.

Files

Header file:
mco.h
Source file:
mcodb.c
Library:
libmcolib.a