Working with Sessions
The c-treeDB interface requires a session handle to perform any data structure initialization or manipulation. The following steps must be executed within a session before any database or table operations are attempted:
- Allocate a session handle by calling ctdbAllocSession()
- Logon to a c-tree session by calling ctdbLogon()
- Perform database and table operations
- Logout from a c-tree session by calling ctdbLogout()
- Release the allocated session handle by calling ctdbFreeSession()
|