From e8ddb5421c03f949fdd997491b8eee971201161a Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 18 Jun 2020 05:25:30 +0000 Subject: [PATCH] TD-353 --- src/tsdb/src/tsdbMeta.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tsdb/src/tsdbMeta.c b/src/tsdb/src/tsdbMeta.c index 98c390f5a5..a0a3aebfd4 100644 --- a/src/tsdb/src/tsdbMeta.c +++ b/src/tsdb/src/tsdbMeta.c @@ -1036,10 +1036,10 @@ static int tsdbEncodeTable(void **buf, STable *pTable) { ASSERT(pTable != NULL); int tlen = 0; - tlen = taosEncodeFixedU8(buf, pTable->type); - tlen = tsdbEncodeTableName(buf, pTable->name); - tlen = taosEncodeFixedU64(buf, TABLE_UID(pTable)); - tlen = taosEncodeFixedI32(buf, TABLE_TID(pTable)); + tlen += taosEncodeFixedU8(buf, pTable->type); + tlen += tsdbEncodeTableName(buf, pTable->name); + tlen += taosEncodeFixedU64(buf, TABLE_UID(pTable)); + tlen += taosEncodeFixedI32(buf, TABLE_TID(pTable)); if (TABLE_TYPE(pTable) == TSDB_CHILD_TABLE) { tlen += taosEncodeFixedU64(buf, TABLE_SUID(pTable)); -- GitLab