From 4bbdd6228a6bd343b660b2c299c7b227f27cfdf3 Mon Sep 17 00:00:00 2001 From: Yifan Hao Date: Tue, 23 Nov 2021 19:22:35 -0800 Subject: [PATCH] Define TSDB_CODE_DND_VNODE_OPEN_FAILED in terror.c This patch completes the definition of new error code TSDB_CODE_DND_VNODE_OPEN_FAILED. --- src/inc/taoserror.h | 2 +- src/util/src/terror.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/inc/taoserror.h b/src/inc/taoserror.h index 83cda3afbf..79ee0eb308 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 379b7530fa..3ab8ad9e7c 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") -- GitLab