add macro SF_CLUSTER_ERROR_BINLOG_MISSED
parent
c717646593
commit
89a39e85d3
|
|
@ -45,8 +45,9 @@
|
||||||
#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_SESSION_ERROR_NOT_EXIST 9992
|
||||||
#define SF_CLUSTER_ERROR_NOT_LEADER 9996
|
#define SF_CLUSTER_ERROR_NOT_LEADER 9995
|
||||||
#define SF_CLUSTER_ERROR_LEADER_VERSION_INCONSISTENT 9997
|
#define SF_CLUSTER_ERROR_LEADER_VERSION_INCONSISTENT 9996
|
||||||
|
#define SF_CLUSTER_ERROR_BINLOG_MISSED 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
|
||||||
#define SF_CLUSTER_ERROR_MASTER_INCONSISTENT SF_CLUSTER_ERROR_LEADER_INCONSISTENT
|
#define SF_CLUSTER_ERROR_MASTER_INCONSISTENT SF_CLUSTER_ERROR_LEADER_INCONSISTENT
|
||||||
|
|
|
||||||
|
|
@ -311,6 +311,8 @@ ScheduleEntry *sf_logger_set_schedule_entry(struct log_context *pContext,
|
||||||
const char *sf_strerror(const int errnum)
|
const char *sf_strerror(const int errnum)
|
||||||
{
|
{
|
||||||
switch (errnum) {
|
switch (errnum) {
|
||||||
|
case SF_CLUSTER_ERROR_BINLOG_MISSED:
|
||||||
|
return "binlog missed";
|
||||||
case SF_CLUSTER_ERROR_BINLOG_INCONSISTENT:
|
case SF_CLUSTER_ERROR_BINLOG_INCONSISTENT:
|
||||||
return "binlog inconsistent";
|
return "binlog inconsistent";
|
||||||
case SF_CLUSTER_ERROR_LEADER_INCONSISTENT:
|
case SF_CLUSTER_ERROR_LEADER_INCONSISTENT:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue