Previous Topic

Next Topic

Find Active Table by UID

ctdbFindActiveTableByUID() locate an active table given its UID number and return the active table handle. The following example shows how to check if a table is active using its UID number.

/* check if a table is active, by UID */
CTBOOL IsActiveTableByUID(CTHANDLE hTable, ULONG uid)
{
   return (ctdbFindActiveTableByUID(hTable, uid) != NULL) ? YES : NO;
}