diff --git a/src/inc/taoserror.h b/src/inc/taoserror.h index 83cda3afbf8c5bb4556495afe9a5fc7a2e8c73aa..79ee0eb3081a712ad37d1404f95567db053ac7c1 100644 --- a/src/inc/taoserror.h +++ b/src/inc/taoserror.h @@ -224,7 +224,7 @@ int32_t* taosGetErrno(); #define TSDB_CODE_DND_ACTION_IN_PROGRESS TAOS_DEF_ERROR_CODE(0, 0x0404) //"Action in progress") #define TSDB_CODE_DND_TOO_MANY_VNODES TAOS_DEF_ERROR_CODE(0, 0x0405) //"Too many vnode directories") #define TSDB_CODE_DND_EXITING TAOS_DEF_ERROR_CODE(0, 0x0406) //"Dnode is exiting" -#define TSDB_CODE_DND_VNODE_OPEN_FAILED TAOS_DEF_ERROR_CODE(0, 0x0407) //"Vnode open failed +#define TSDB_CODE_DND_VNODE_OPEN_FAILED TAOS_DEF_ERROR_CODE(0, 0x0407) //"Vnode open failed" // vnode #define TSDB_CODE_VND_ACTION_IN_PROGRESS TAOS_DEF_ERROR_CODE(0, 0x0500) //"Action in progress") diff --git a/src/util/src/terror.c b/src/util/src/terror.c index 379b7530fa5a898938b9bf0b552e09ab4fbc70b8..3ab8ad9e7c9e737bb0f94dddbdcf19b198566c7e 100644 --- a/src/util/src/terror.c +++ b/src/util/src/terror.c @@ -16,7 +16,7 @@ #include "os.h" #define TAOS_ERROR_C - + typedef struct { int32_t val; const char* str; @@ -232,6 +232,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_DND_INVALID_MSG_LEN, "Invalid message lengt TAOS_DEFINE_ERROR(TSDB_CODE_DND_ACTION_IN_PROGRESS, "Action in progress") TAOS_DEFINE_ERROR(TSDB_CODE_DND_TOO_MANY_VNODES, "Too many vnode directories") TAOS_DEFINE_ERROR(TSDB_CODE_DND_EXITING, "Dnode is exiting") +TAOS_DEFINE_ERROR(TSDB_CODE_DND_VNODE_OPEN_FAILED, "Vnode open failed") // vnode TAOS_DEFINE_ERROR(TSDB_CODE_VND_ACTION_IN_PROGRESS, "Action in progress")