Error HandlingMost c-treeDB API functions return an error status to indicate if a particular function operation succeeded or not. Most c-treeDB API functions will also keep the last error status, if the function operation failed. The last error status can be manipulated with the following functions:
/* clear error if error is INOT_ERR */ if (ctdbGetError(AnyHandle) == INOT_ERR) {
ctdbClearError(AnyHandle); } |
|||