ctdbDisconnect
Disconnect a database.
Declaration
CTDBRET ctdbDisconnect(CTHANDLE Handle)
Description
ctdbDisconnect() disconnects a database from a database handle. Once a database has been disconnected from a database handle, that database is no longer considered "active."
Use ctdbConnect() to connect a database to a database handle.
Use ctdbDisconnectAll() to disconnect all databases associated with a Session.
Returns
ctdbDisconnect() returns CTDBRET_OK on success, or the c-tree error code on failure.
Example
ctdbDisconnect(hDatabase);
ctdbLogout(hSession);
ctdbFreeDatabase(hDatabase);
ctdbFreeSession(hSession);
See also
ctdbAllocDatabase(), ctdbConnect(), ctdbDisconnectAll(), ctdbCreateDatabase()