fix(query): set correct table uid.

This commit is contained in:
Haojun Liao 2022-06-28 16:29:36 +08:00
parent 03fa247a2d
commit 21f494a4c5
1 changed files with 2 additions and 2 deletions

View File

@ -72,9 +72,9 @@ int32_t tsdbRetrieveLastRow(void* pVnode, const SArray* pTableIdList, int32_t ty
}
} else if (type == LASTROW_RETRIEVE_TYPE_ALL) {
for (int32_t i = 0; i < numOfTables; ++i) {
tb_uid_t* uid = taosArrayGet(pTableIdList, i);
STableKeyInfo* pKeyInfo = taosArrayGet(pTableIdList, i);
int32_t code = tsdbCacheGetLastrow(pv->pTsdb->lruCache, *uid, pv->pTsdb, &pRow);
int32_t code = tsdbCacheGetLastrow(pv->pTsdb->lruCache, pKeyInfo->uid, pv->pTsdb, &pRow);
if (code != TSDB_CODE_SUCCESS) {
return code;
}