From 012935e09619c41744d149ac3f54bb53ea731b55 Mon Sep 17 00:00:00 2001 From: wpan Date: Sun, 26 Sep 2021 10:51:09 +0800 Subject: [PATCH] fix bug --- src/kit/shell/src/shellCheck.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kit/shell/src/shellCheck.c b/src/kit/shell/src/shellCheck.c index 7fc8b1409a..bf73cdfa13 100644 --- a/src/kit/shell/src/shellCheck.c +++ b/src/kit/shell/src/shellCheck.c @@ -193,9 +193,11 @@ void shellCheck(TAOS *con, SShellArguments *_args) { return; } - fprintf(stdout, "total %d tables will be checked by %d threads\n", tbNum, _args->threadNum); - shellRunCheckThreads(con, _args); - + if (tbNum > 0) { + fprintf(stdout, "total %d tables will be checked by %d threads\n", tbNum, _args->threadNum); + shellRunCheckThreads(con, _args); + } + int64_t end = taosGetTimestampMs(); fprintf(stdout, "total %d tables checked, failed:%d, time spent %.2f seconds\n", checkedNum, errorNum, (end - start) / 1000.0); -- GitLab