Product Documentation

c-treeACE V11.0 Update Guide

Previous Topic

Next Topic

Counting the Number of Deferred Operations

A count of the number of operations that have been deferred for the index is stored in the index file’s header. A new extended GETFILX() API function has been introduced with additional parameter options and can be used to read this value with the DFRKOPS mode.

Function prototype

ctCONV NINT ctDECL GETFILX( FILNO filno,COUNT mode, pVOID bufptr, pNINT pbuflen );

Example

LONG8 ndfrkops;

NINT rc, buflen = sizeof(LONG8);


if ((rc = GETFILX( keyno, DFRKOPS, &ndfrkops, &buflen))) {

printf("Error: Failed to get deferred operation count: %d\n",

rc);

} else {

printf("Number of deferred index operations :" ctLLnd(10) " ",

ndfrkops);

}

TOCIndex