提交 21f494a4 编写于 作者: H Haojun Liao

fix(query): set correct table uid.

上级 03fa247a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册