ctdbGetSessionType
Retrieve the current session type.
Declaration
CTSESSION_TYPE ctdbGetSessionType(CTHANDLE Handle)
Description
ctdbGetSessionType() retrieves the current session type. The session type is initially set when ctdbAllocSession() is called to allocate a new session handle, and it can be modified using ctdbSetSessionType().
Returns
ctdbGetSessionType() returns the session type. If the session handle is not valid, ctdbGetSessionType() always return CTSESSION_CTDB.
See also
ctdbSetSessionType()