[TD-225] refactor codes.

This commit is contained in:
Haojun Liao 2020-12-08 23:15:28 +08:00
parent b81629e078
commit be296c2561
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ static int32_t getRowExpandSize(STableMeta* pTableMeta) {
}
static void extractTableMeta(SSqlCmd* pCmd) {
pCmd->numOfTables = taosHashGetSize(pCmd->pTableBlockHashList);
pCmd->numOfTables = (int32_t) taosHashGetSize(pCmd->pTableBlockHashList);
pCmd->pTableMetaList = calloc(pCmd->numOfTables, POINTER_BYTES);
STableDataBlocks **p1 = taosHashIterate(pCmd->pTableBlockHashList, NULL);