From 590e244ea92e819b5aa7311ea3a457367c0338a3 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Sun, 9 Oct 2022 10:36:18 +0800 Subject: [PATCH] fix(shell): array count error for threads --- src/kit/shell/src/shellAuto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kit/shell/src/shellAuto.c b/src/kit/shell/src/shellAuto.c index 50a3ca5059..25a4577fbb 100644 --- a/src/kit/shell/src/shellAuto.c +++ b/src/kit/shell/src/shellAuto.c @@ -21,7 +21,7 @@ #include "tkey.h" #include "tulog.h" #include "shellAuto.h" -#include "tire.h" +#include "shellTire.h" #include "tthread.h" // @@ -622,7 +622,7 @@ void shellAutoExit() { pthread_mutex_destroy(&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; -- GitLab