diff --git a/include/libs/sync/sync.h b/include/libs/sync/sync.h index 6e36e03b92031e2becf7dc04917e1a595df97760..a93b359ef3e4d5cd9f9c9ee00f90d7b6df8430c4 100644 --- a/include/libs/sync/sync.h +++ b/include/libs/sync/sync.h @@ -54,11 +54,6 @@ typedef enum { TAOS_SYNC_STATE_ERROR = 103, } ESyncState; -typedef enum { - TAOS_SYNC_FSM_CB_SUCCESS = 0, - TAOS_SYNC_FSM_CB_OTHER_ERROR = 1, -} ESyncFsmCbCode; - typedef struct SNodeInfo { uint16_t nodePort; char nodeFqdn[TSDB_FQDN_LEN]; diff --git a/include/util/taoserror.h b/include/util/taoserror.h index f881e29610544c592a9c74c5bfcff94d932a995f..add8ee69740fb67a2b89f3581f32a4362f98ffe7 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -428,6 +428,7 @@ int32_t* taosGetErrno(); #define TSDB_CODE_SYN_PROPOSE_NOT_READY TAOS_DEF_ERROR_CODE(0, 0x0911) #define TSDB_CODE_SYN_STANDBY_NOT_READY TAOS_DEF_ERROR_CODE(0, 0x0912) #define TSDB_CODE_SYN_BATCH_ERROR TAOS_DEF_ERROR_CODE(0, 0x0913) +#define TSDB_CODE_SYN_TIMEOUT TAOS_DEF_ERROR_CODE(0, 0x0914) #define TSDB_CODE_SYN_INTERNAL_ERROR TAOS_DEF_ERROR_CODE(0, 0x09FF) // tq diff --git a/source/util/src/terror.c b/source/util/src/terror.c index 923ff1878cc1e7bd20f721c1966cfeefadd4921f..18d1beddbcf264bef27862a521a4fa6055e5de30 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -433,6 +433,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_SYN_RECONFIG_NOT_READY, "Sync not ready for re TAOS_DEFINE_ERROR(TSDB_CODE_SYN_PROPOSE_NOT_READY, "Sync not ready for propose") TAOS_DEFINE_ERROR(TSDB_CODE_SYN_STANDBY_NOT_READY, "Sync not ready for standby") TAOS_DEFINE_ERROR(TSDB_CODE_SYN_BATCH_ERROR, "Sync batch error") +TAOS_DEFINE_ERROR(TSDB_CODE_SYN_TIMEOUT, "Sync timeout") TAOS_DEFINE_ERROR(TSDB_CODE_SYN_INTERNAL_ERROR, "Sync internal error") // wal