From 8ecfaa5a7cbe28449758de8d2ce654d2a84e4207 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 9 Mar 2023 15:42:09 +0800 Subject: [PATCH] refact --- include/common/tmsg.h | 2 +- source/common/src/tmsg.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 2a0602a813..7580f6602b 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -1316,7 +1316,7 @@ typedef struct { int8_t strict; int8_t cacheLast; int64_t reserved[8]; - // 1.0 modification + // 1st modification int16_t sttTrigger; int32_t minRows; } SAlterVnodeConfigReq; diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 4dbe974ccd..bf3705fb86 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -4173,7 +4173,7 @@ int32_t tSerializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeCon if (tEncodeI64(&encoder, pReq->reserved[i]) < 0) return -1; } - // 1.0 modification + // 1st modification if (tEncodeI16(&encoder, pReq->sttTrigger) < 0) return -1; if (tEncodeI32(&encoder, pReq->minRows) < 0) return -1; @@ -4206,7 +4206,7 @@ int32_t tDeserializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeC if (tDecodeI64(&decoder, &pReq->reserved[i]) < 0) return -1; } - // 1.0 modification + // 1st modification if (tDecodeIsEnd(&decoder)) { pReq->sttTrigger = -1; pReq->minRows = -1;