ischeckindex

check the integrity of an ISAM file index

SYNOPSIS

int ischeckindex( IsFile * isfd, int idx );

isfd isam file identifier
int key id number, where 1 represents the primary

RETURN

SUCCESS, or a negative value on error, in which case the error code is found in iserrno.

NOTES

this routine checks the specified index for errors, and will return a value with the following bits set in accordance with it's findings:

IC_IDXREAD      3       index file read error
IC_ORDER        4       key out of order
IC_COUNT        5       index count mismatch
IC_BADMAGIC     6       bad index node magic number

if the return value is zero then no errors were detected.

SEE ALSO

ischeckdata ischeckvarlen