xflminterface IF_DbCheckStatus : public XF_RefCount
This interface is used to report progress while checking a database. It extends XF_RefCount. XFLAIM does not provide an implementation of this interface. It exists to give the application a chance to receive progress reports while checking a database. This object is passed to the IF_DbSystem::dbCheck method.
Method Summary |
|
RCODE | reportProgress - Report progress of the database check. |
RCODE | reportCheckErr - Report a corruption that was found. |
Method Detail |
RCODE reportProgress(
XFLM_PROGRESS_CHECK_INFO * pProgCheck);
Report the progress of the database check. If the application returns a non-zero RCODE, the database check operation will be canceled.
Parameters In:
XFLM_PROGRESS_CHECK_INFO * pProgCheck Pointer to a structure with detailed information about the progress of the database check operation.
Parameters Out: none
RCODE reportCheckErr(
XFLM_CORRUPT_INFO * pCorruptInfo,
FLMBOOL * pbFix);
Report a corruption that was found by the database check operation. If the application returns a non-zero RCODE, the database check operation will be canceled.
Parameters In:
XFLM_CORRUPT_INFO * pCorruptInfo Pointer to a structure with detailed information about the particular corruption that was found.
Parameters Out:
FLMBOOL * pbFix Application should return a TRUE here if it wants FLAIM to attempt to repair the corruption. Note that the only types of corruptions that FLAIM can repair are logical index corruptions. All other corruptions can only be addressed by rebuilding the database. See IF_DbSystem::dbRebuild.