FairCom Corporation


F.16 CleanIndexXtd


Clean up any leaf node exceptions and reset high-water mark.

Short Name

CLNIDXX

TYPE

Utility Function

DECLARATION

COUNT CleanIndexXtd(pTEXT filnam, pTEXT fileword)

DESCRIPTION

CleanIndexXtd function cleans any leaf nodes of exceptional transaction marks and resets the transaction high-water mark in the header to zero. This allows a high-volume transaction-controlled index file to have its high-water mark reset without rebuilding the entire index file.

RETURN

This routine returns an error code, but should return NO_ERROR unless filnam does not exist. See Appendix A "c-tree Plus Error Codes" of the c-tree Plus Programmer's Reference Guide for a complete listing of valid c-tree Plus error values.

EXAMPLE

See the ctclntrn utility for an example of this function in use.

SEE ALSO

ctclntrn utility


FairCom Corporation
www.faircom.com