add error code SF_ERROR_EOPNOTSUPP
parent
223f15fb79
commit
6bea6c93a9
|
|
@ -58,6 +58,7 @@
|
|||
#define SF_ERROR_EINVAL 8822
|
||||
#define SF_ERROR_EAGAIN 8835
|
||||
#define SF_ERROR_EOVERFLOW 8884
|
||||
#define SF_ERROR_EOPNOTSUPP 8895
|
||||
|
||||
#define SF_FORCE_CLOSE_CONNECTION_ERROR_MIN SF_RETRIABLE_ERROR_NOT_MASTER
|
||||
#define SF_FORCE_CLOSE_CONNECTION_ERROR_MAX SF_RETRIABLE_ERROR_MAX
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@ static inline int sf_unify_errno(const int errnum)
|
|||
return SF_ERROR_EAGAIN;
|
||||
case EOVERFLOW:
|
||||
return SF_ERROR_EOVERFLOW;
|
||||
case EOPNOTSUPP:
|
||||
return SF_ERROR_EOPNOTSUPP;
|
||||
default:
|
||||
return errnum;
|
||||
}
|
||||
|
|
@ -117,6 +119,8 @@ static inline int sf_localize_errno(const int errnum)
|
|||
return EAGAIN;
|
||||
case SF_ERROR_EOVERFLOW:
|
||||
return EOVERFLOW;
|
||||
case SF_ERROR_EOPNOTSUPP:
|
||||
return EOPNOTSUPP;
|
||||
default:
|
||||
return errnum;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue