ctdbGetFirstActiveTable() retrieves the table handle of the first active table. If the database contains no active tables, ctdbGetFirstActiveTable() returns NULL.