ctdbGetError
Return the last error logged by any function in the c-treeDB API C API.
Declaration
CTDBRET ctdbGetError(CTHANDLE Handle)
Description
ctdbGetError() returns the last error logged by any function in the c-treeDB API C API that was called from the specified session. This function should only be called to check for errors if a c-treeDB 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 c-treeDB API, or NULL on failure.
See also
ctdbAllocSession(), ctdbAllocDatabase(), ctdbAllocTable(), ctdbAllocRecord(), ctdbAllocField(), ctdbAllocIndex(), ctdbAllocSegment(), ctdbClearError(), ctdbSetError()