提交 8ecfaa5a 编写于 作者: H Hongze Cheng

refact

上级 afd01bb9
...@@ -1316,7 +1316,7 @@ typedef struct { ...@@ -1316,7 +1316,7 @@ typedef struct {
int8_t strict; int8_t strict;
int8_t cacheLast; int8_t cacheLast;
int64_t reserved[8]; int64_t reserved[8];
// 1.0 modification // 1st modification
int16_t sttTrigger; int16_t sttTrigger;
int32_t minRows; int32_t minRows;
} SAlterVnodeConfigReq; } SAlterVnodeConfigReq;
......
...@@ -4173,7 +4173,7 @@ int32_t tSerializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeCon ...@@ -4173,7 +4173,7 @@ int32_t tSerializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeCon
if (tEncodeI64(&encoder, pReq->reserved[i]) < 0) return -1; if (tEncodeI64(&encoder, pReq->reserved[i]) < 0) return -1;
} }
// 1.0 modification // 1st modification
if (tEncodeI16(&encoder, pReq->sttTrigger) < 0) return -1; if (tEncodeI16(&encoder, pReq->sttTrigger) < 0) return -1;
if (tEncodeI32(&encoder, pReq->minRows) < 0) return -1; if (tEncodeI32(&encoder, pReq->minRows) < 0) return -1;
...@@ -4206,7 +4206,7 @@ int32_t tDeserializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeC ...@@ -4206,7 +4206,7 @@ int32_t tDeserializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeC
if (tDecodeI64(&decoder, &pReq->reserved[i]) < 0) return -1; if (tDecodeI64(&decoder, &pReq->reserved[i]) < 0) return -1;
} }
// 1.0 modification // 1st modification
if (tDecodeIsEnd(&decoder)) { if (tDecodeIsEnd(&decoder)) {
pReq->sttTrigger = -1; pReq->sttTrigger = -1;
pReq->minRows = -1; pReq->minRows = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册