ctdbDisconnectAll
Disconnect all databases.
Declaration
CTDBRET ctdbDisconnectAll(CTHANDLE Handle)
Description
ctdbDisconnectAll() disconnects all connected databases. 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 session via a database handle.
Use ctdbDisconnect() to disconnect just one database.
A database created with ctdbCreateDatabase() is automatically connected to the present session.
Returns
ctdbDisconnect() returns CTDBRET_OK on success, or the c-tree error code on failure.
Example
ctdbCloseAll(hDatabase);
ctdbDisconnectAll(hSession);
ctdbLogout(hSession);
ctdbFreeTable(hTable);
ctdbFreeDatabase(hDatabase);
ctdbFreeSession(hSession);
See also
ctdbAllocSession(), ctdbConnect(), ctdbDisconnect(), ctdbCreateDatabase()