Previous Topic

Next Topic

Find Active Table

ctdbFindActiveTable() locates a specific active table and returns the table handle. If the table is not active, ctdbFindActiveTable() returns NULL.

/* Check if table is active */
CTBOOL IsTableActive(CTHANDLE hDatabase, pTEXT tblName)
{
   return (ctdbFindActiveTable(hDatabase, tblName) != NULL) ? YES : NO;
}

The function above is shown for example purposes only. ctdbIsActiveTable() provides a more efficient way to check if a table is active.