fix: fix windows quit issue

This commit is contained in:
dapan1121 2022-06-28 19:00:20 +08:00
parent 341c91fd7d
commit 3a934d09e3
1 changed files with 3 additions and 1 deletions

View File

@ -1284,7 +1284,9 @@ void catalogDestroy(void) {
atomic_store_8((int8_t*)&gCtgMgmt.exit, true);
ctgClearCacheEnqueue(NULL, true, true, true);
if (!taosCheckCurrentInDll()) {
ctgClearCacheEnqueue(NULL, true, true, true);
}
taosHashCleanup(gCtgMgmt.pCluster);
gCtgMgmt.pCluster = NULL;