ctdbGetSessionPath
Return the default session path.
Declaration
CTDBRET ctdbGetSessionPath(CTHANDLE Handle, pTEXT Path,
VRLEN PathSize)
Description
ctdbGetSessionPath() returns the session path that is stored in the session handle. Note that the returned session path will be empty unless you have previously called ctdbSetSessionPath() with that session handle. Use ctdbSetSessionPath() to set the session path.
Returns
ctdbGetSessionPath() returns CTDBRET_OK if successful, or the c-tree Plus error code on failure, or CTDBRET_ARGSMALL (4006) if the Path is not large enough to hold the session path.
Example
eRet = ctdbLogon(handle, "FAIRCOMS", "ADMIN", "ADMIN");
eRet = ctdbGetSessionPath(handle, ses_path, sizeof(ses_path));
See also
ctdbSetSessionPath()