ctdbGetError
Return the last error logged by any function in the FairCom DB API C API.
Declaration
CTDBRET ctdbGetError(CTHANDLE Handle)
Description
ctdbGetError() returns the last error logged by any function in the FairCom DB API C API that was called from the specified session. This function should only be called to check for errors if a FairCom DB API C API function fails. In this situation, it does return the last error condition.
Returns
ctdbGetError() returns the last error logged by any function in the FairCom DB API, or NULL on failure.
See also
ctdbAllocSession(), ctdbAllocDatabase(), ctdbAllocTable(), ctdbAllocRecord(), ctdbAllocField(), ctdbAllocIndex(), ctdbAllocSegment(), ctdbClearError(), ctdbSetError()