FairCom Corporation


4.3.33 ctdbCloseTable


Close an open table.

Declaration

CTDBRET ctdbCloseTable(CTHANDLE Handle)

Description

ctdbCloseTable closes an open table. To open a table, use ctdbOpenTable. When the table is closed, all resources associated with the table fields, indices, and segments are freed, and the table is reset to all default initial parameters.

Returns

ctdbCloseTable returns CTDBRET_OK on success, or c-treeDB C API error code on failure.

Example

eRet = ctdbClose(hTable);
eRet = ctdbFreeTable(hTable);

See also

ctdbAllocTable, ctdbOpenTable


FairCom Corporation
www.faircom.com