From cabddb2c1e4bcad29fddab8dc5ecf93170976626 Mon Sep 17 00:00:00 2001 From: slguan Date: Thu, 7 May 2020 18:57:52 +0800 Subject: [PATCH] [TD-230] fix memory links --- src/mnode/src/mgmtShell.c | 1 - src/plugins/http/src/httpSystem.c | 4 +++- src/util/src/tcache.c | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mnode/src/mgmtShell.c b/src/mnode/src/mgmtShell.c index c86bf2a2dd..ac4d6de5bf 100644 --- a/src/mnode/src/mgmtShell.c +++ b/src/mnode/src/mgmtShell.c @@ -108,7 +108,6 @@ void mgmtCleanUpShell() { } if (tsQhandleCache) { - taosCacheEmpty(tsQhandleCache); taosCacheCleanup(tsQhandleCache); tsQhandleCache = NULL; } diff --git a/src/plugins/http/src/httpSystem.c b/src/plugins/http/src/httpSystem.c index 89dc11796f..9a8841b8de 100644 --- a/src/plugins/http/src/httpSystem.c +++ b/src/plugins/http/src/httpSystem.c @@ -117,7 +117,7 @@ void httpCleanUpSystem() { httpPrint("http service cleanup"); httpStopSystem(); -#if 0 +//#if 0 if (httpServer == NULL) { return; } @@ -132,6 +132,8 @@ void httpCleanUpSystem() { } httpCleanUpConnect(httpServer); + +#if 0 httpRemoveAllSessions(httpServer); if (httpServer->pContextPool != NULL) { diff --git a/src/util/src/tcache.c b/src/util/src/tcache.c index 63fe124de2..02a5b93141 100644 --- a/src/util/src/tcache.c +++ b/src/util/src/tcache.c @@ -304,9 +304,9 @@ static FORCE_INLINE SCacheDataNode *taosAddToCacheImpl(SCacheObj *pCacheObj, con static void doCleanupDataCache(SCacheObj *pCacheObj) { __cache_wr_lock(pCacheObj); - if (taosHashGetSize(pCacheObj->pHashTable) > 0) { - taosHashCleanup(pCacheObj->pHashTable); - } + //if (taosHashGetSize(pCacheObj->pHashTable) > 0) { + taosHashCleanup(pCacheObj->pHashTable); + //} __cache_unlock(pCacheObj); -- GitLab