add macro SF_SESSION_ERROR_NOT_EXIST

storage_pool
YuQing 2021-04-20 10:15:56 +08:00
parent 94bcf26518
commit 0d79aaf870
2 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@
#define SF_NIO_TASK_STAGE_FETCH(task) task->nio_stages.current
#define SF_SESSION_ERROR_NOT_EXIST 9992
#define SF_CLUSTER_ERROR_LEADER_VERSION_INCONSISTENT 9997
#define SF_CLUSTER_ERROR_BINLOG_INCONSISTENT 9998
#define SF_CLUSTER_ERROR_LEADER_INCONSISTENT 9999

View File

@ -125,6 +125,8 @@ static inline int sf_localize_errno(const int errnum)
return EOPNOTSUPP;
case SF_ERROR_ENODATA:
return ENODATA;
case SF_SESSION_ERROR_NOT_EXIST:
return EPERM;
default:
return errnum;
}