From ff73c3f5f2ea6428226433a0dd41a966755f72e4 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Sun, 9 Oct 2022 10:34:16 +0800 Subject: [PATCH] fix(shell): threads array destroydump --- tools/shell/inc/{tire.h => shellTire.h} | 0 tools/shell/src/shellAuto.c | 2 +- tools/shell/src/{tire.c => shellTire.c} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename tools/shell/inc/{tire.h => shellTire.h} (100%) rename tools/shell/src/{tire.c => shellTire.c} (100%) diff --git a/tools/shell/inc/tire.h b/tools/shell/inc/shellTire.h similarity index 100% rename from tools/shell/inc/tire.h rename to tools/shell/inc/shellTire.h diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index 55955b2d36..d1eddabd23 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -772,7 +772,7 @@ void shellAutoExit() { taosThreadMutexDestroy(&tiresMutex); // free threads - for (int32_t i = 0; i < WT_VAR_CNT; i++) { + for (int32_t i = 0; i < WT_FROM_DB_CNT; i++) { if (threads[i]) { taosDestroyThread(threads[i]); threads[i] = NULL; diff --git a/tools/shell/src/tire.c b/tools/shell/src/shellTire.c similarity index 100% rename from tools/shell/src/tire.c rename to tools/shell/src/shellTire.c -- GitLab