[td-225]fix compiler error.

This commit is contained in:
Haojun Liao 2021-07-24 22:32:44 +08:00
parent 551f54fc40
commit a54429b74c
1 changed files with 2 additions and 2 deletions

View File

@ -8157,12 +8157,12 @@ int32_t loadAllTableMeta(SSqlObj* pSql, struct SSqlInfo* pInfo) {
tscDebug("0x%"PRIx64" failed to retrieve stable %s vgroup id list in cache, try fetch from mnode", pSql->self, pTableName);
} else {
tFilePage* pdata = (tFilePage*) pv;
pVgroupIdList = taosArrayInit(pdata->num, sizeof(int32_t));
pVgroupIdList = taosArrayInit((size_t) pdata->num, sizeof(int32_t));
if (pVgroupIdList == NULL) {
return TSDB_CODE_TSC_OUT_OF_MEMORY;
}
taosArrayAddBatch(pVgroupIdList, pdata->data, pdata->num);
taosArrayAddBatch(pVgroupIdList, pdata->data, (int32_t) pdata->num);
taosCacheRelease(tscVgroupListBuf, &pv, false);
}
}