Session propertiesThe default session properties are suitable for most c-treeDB applications. Advanced developers may need to tune c-treeDB to meet application requirements. Use ctdbSetSessionParams() to set the following properties:
The default USERPROF value of 513 tells single-user, transaction-control applications, to remove the auxiliary log files S*.FCS and L*.FCS upon successful termination of the application, and also removes the automatic key transformation. The table below presents all possible values for the USERPROF parameter.
Example
ctdbSetSessionParam(hSession, USERPROF, (USERPRF_NTKEY | USERPROF_CLRCHK)); if (ctdbLogon(hSession, “FAIRCOMS”, “ADMIN”, “ADMIN) != CTDBRET_OK) FatalError(“Session logon failed\n”); |
|||||||||||||||||||||||||||||||||||||||||||||