提交 590e244e 编写于 作者: A Alex Duan

fix(shell): array count error for threads

上级 b8696420
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "tkey.h" #include "tkey.h"
#include "tulog.h" #include "tulog.h"
#include "shellAuto.h" #include "shellAuto.h"
#include "tire.h" #include "shellTire.h"
#include "tthread.h" #include "tthread.h"
// //
...@@ -622,7 +622,7 @@ void shellAutoExit() { ...@@ -622,7 +622,7 @@ void shellAutoExit() {
pthread_mutex_destroy(&tiresMutex); pthread_mutex_destroy(&tiresMutex);
// free threads // 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]) { if (threads[i]) {
taosDestroyThread(threads[i]); taosDestroyThread(threads[i]);
threads[i] = NULL; threads[i] = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册