add macro SF_SESSION_ERROR_NOT_EXIST
parent
94bcf26518
commit
0d79aaf870
|
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
#define SF_NIO_TASK_STAGE_FETCH(task) task->nio_stages.current
|
#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_LEADER_VERSION_INCONSISTENT 9997
|
||||||
#define SF_CLUSTER_ERROR_BINLOG_INCONSISTENT 9998
|
#define SF_CLUSTER_ERROR_BINLOG_INCONSISTENT 9998
|
||||||
#define SF_CLUSTER_ERROR_LEADER_INCONSISTENT 9999
|
#define SF_CLUSTER_ERROR_LEADER_INCONSISTENT 9999
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,8 @@ static inline int sf_localize_errno(const int errnum)
|
||||||
return EOPNOTSUPP;
|
return EOPNOTSUPP;
|
||||||
case SF_ERROR_ENODATA:
|
case SF_ERROR_ENODATA:
|
||||||
return ENODATA;
|
return ENODATA;
|
||||||
|
case SF_SESSION_ERROR_NOT_EXIST:
|
||||||
|
return EPERM;
|
||||||
default:
|
default:
|
||||||
return errnum;
|
return errnum;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue