FairCom Corporation


4.3.99 ctdbFreeDatabase


Release all resources associated with a database handle

Declaration

void ctdbFreeDatabase(CTHANDLE Handle)

Description

ctdbFreeDatabase releases all resources associated with a database. After a call to ctdbFreeDatabase, the database handle cannot be used for other operations. For each ctdbAllocDatabase call, there must be a ctdbFreeDatabase call.

Returns

None.

Example

CTHANDLE hDatabase = ctdbAllocDatabase(hSession);
ctdbCreateDatabase(hDatabase, "Database1", "");
ctdbFreeDatabase(hDatabase); // the handle cannot be used anymore

See also

ctdbAllocDatabase, ctdbFreeSession


FairCom Corporation
www.faircom.com