From 60d6b8e2eec0b0b852c3b276a37aeff8545d69b0 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 26 Nov 2022 11:51:15 +0800 Subject: [PATCH] fix(query): change the ptr --- source/dnode/vnode/src/meta/metaCache.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/dnode/vnode/src/meta/metaCache.c b/source/dnode/vnode/src/meta/metaCache.c index 5277e25d4a..6a704d0425 100644 --- a/source/dnode/vnode/src/meta/metaCache.c +++ b/source/dnode/vnode/src/meta/metaCache.c @@ -534,8 +534,8 @@ int32_t metaUidFilterCachePut(SMeta* pMeta, uint64_t suid, const void* pKey, int // remove the lru cache that are expired due to the tags value update, or creating, or dropping, of child tables int32_t metaUidCacheClear(SMeta* pMeta, uint64_t suid) { - STagFilterResEntry* pEntry = taosHashGet(pMeta->pCache->sTagFilterResCache.pTableEntry, &suid, sizeof(uint64_t)); - if (pEntry == NULL || listNEles(&pEntry->list) == 0) { + STagFilterResEntry** pEntry = taosHashGet(pMeta->pCache->sTagFilterResCache.pTableEntry, &suid, sizeof(uint64_t)); + if (pEntry == NULL || listNEles(&(*pEntry)->list) == 0) { return TSDB_CODE_SUCCESS; } @@ -544,7 +544,7 @@ int32_t metaUidCacheClear(SMeta* pMeta, uint64_t suid) { p[0] = suid; SListIter iter = {0}; - tdListInitIter(&pEntry->list, &iter, TD_LIST_FORWARD); + tdListInitIter(&(*pEntry)->list, &iter, TD_LIST_FORWARD); SListNode* pNode = NULL; while ((pNode = tdListNext(&iter)) != NULL) { @@ -552,8 +552,8 @@ int32_t metaUidCacheClear(SMeta* pMeta, uint64_t suid) { taosLRUCacheErase(pMeta->pCache->sTagFilterResCache.pUidResCache, p, keyLen); } - pEntry->qTimes = 0; - tdListEmpty(&pEntry->list); + (*pEntry)->qTimes = 0; + tdListEmpty(&(*pEntry)->list); return TSDB_CODE_SUCCESS; } -- GitLab