This commit is contained in:
Hongze Cheng 2020-06-18 05:25:30 +00:00
parent 2e3441d108
commit e8ddb5421c
1 changed files with 4 additions and 4 deletions

View File

@ -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));