mco_db_recover

This function allows an application to explicitly recover a database.

Prototype

 
    MCO_RET	mco_db_recover(	 mco_db_h db, mco_db_h recover_db );
 

Arguments

db The database handle that was established by mco_db_connect()

recover_db

The database handle of the crashed database

Description

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

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:
mcoabst.c
Library:
libmcolib.a