From b1e8c21903a8b054057ff2344b9ddde51accea94 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 6 Dec 2023 10:10:49 +0800 Subject: [PATCH] valid msg --- include/common/tmsgdef.h | 2 +- source/common/src/tmsg.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/common/tmsgdef.h b/include/common/tmsgdef.h index afd7034319..af44ec3bae 100644 --- a/include/common/tmsgdef.h +++ b/include/common/tmsgdef.h @@ -61,7 +61,7 @@ #undef TD_CLOSE_MSG_TYPE #define TD_NEW_MSG_SEG(TYPE) TYPE##_NUM, #define TD_DEF_MSG_TYPE(TYPE, MSG, REQ, RSP) - #define TD_CLOSE_MSG_TYPE(type) + #define TD_CLOSE_MSG_TYPE(TYPE) int32_t tMsgDict[] = { diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 4e828812f1..d69542c98b 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -18,12 +18,14 @@ #undef TD_MSG_NUMBER_ #undef TD_MSG_DICT_ +#undef TD_MSG_RANGE_CODE_ #define TD_MSG_INFO_ #undef TD_MSG_SEG_CODE_ #include "tmsgdef.h" #undef TD_MSG_NUMBER_ #undef TD_MSG_INFO_ +#undef TD_MSG_RANGE_CODE_ #define TD_MSG_DICT_ #undef TD_MSG_SEG_CODE_ #include "tmsgdef.h" @@ -37,7 +39,6 @@ #include "tlog.h" - #define DECODESQL() \ do { \ if (!tDecodeIsEnd(&decoder)) { \