From 21f494a4c5522d45598b2728fbe869f58f60e843 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 28 Jun 2022 16:29:36 +0800 Subject: [PATCH] fix(query): set correct table uid. --- source/dnode/vnode/src/tsdb/tsdbCacheRead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbCacheRead.c b/source/dnode/vnode/src/tsdb/tsdbCacheRead.c index 80a5939710..15bacab5fe 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCacheRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbCacheRead.c @@ -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; }