From cf76b418f95d41fd60d819bcc1c11148c6446871 Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Thu, 17 Nov 2022 17:19:26 +0800 Subject: [PATCH] refactor(sync): reduce cache size --- source/libs/sync/src/syncRaftLog.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/libs/sync/src/syncRaftLog.c b/source/libs/sync/src/syncRaftLog.c index 955ecf9c29..db0b6d1d02 100644 --- a/source/libs/sync/src/syncRaftLog.c +++ b/source/libs/sync/src/syncRaftLog.c @@ -325,15 +325,12 @@ static int32_t raftLogTruncate(struct SSyncLogStore* pLogStore, SyncIndex fromIn // delete from cache for (SyncIndex index = fromIndex; index <= wallastVer; ++index) { SLRUCache* pCache = pData->pSyncNode->pLogStore->pCache; - taosLRUCacheErase(pData->pSyncNode->pLogStore->pCache, &index, sizeof(index)); -#if 0 LRUHandle* h = taosLRUCacheLookup(pCache, &index, sizeof(index)); if (h) { sNTrace(pData->pSyncNode, "cache delete index:%" PRId64, index); taosLRUCacheRelease(pData->pSyncNode->pLogStore->pCache, h, true); } -#endif } int32_t code = walRollback(pWal, fromIndex);