Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbSetSessionType

Change the session type.

Declaration

CTDBRET ctdbSetSessionType(CTHANDLE Handle, CTSESSION_TYPE SessionType)

Description

ctdbSetSessionType() changes the session type. The session type is initially set when ctdbAllocSession() is called to allocate a new session handle. ctdbSetSessionType() allow users to change the session type after it has been allocated.

  • Handle [in] the session handle.
  • SessionType [in] the new session type. The valid types are CTSESSION_CTDB, CTSESSION_CTREE, or CTSESSION_SQL

Returns

ctdbSetSessionType() returns CTDBRET_OK if successful, or the c-tree error code on failure.

See also

ctdbGetSessionType()

TOCIndex