From 2d07eef4c027f24348d960ed777ec797d8985dcf Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 1 Mar 2021 17:13:01 +0800 Subject: [PATCH] [TD-3117] : fix taosdemo coredump led by cntDelay. --- src/kit/taosdemo/taosdemo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kit/taosdemo/taosdemo.c b/src/kit/taosdemo/taosdemo.c index 7cd9a35a8a..0db4b118d7 100644 --- a/src/kit/taosdemo/taosdemo.c +++ b/src/kit/taosdemo/taosdemo.c @@ -4271,7 +4271,7 @@ void startMultiThreadInsertData(int threads, char* db_name, char* precision, SSu } cntDelay -= 1; - assert(cntDelay != 0); + if (cntDelay == 0) cntDelay = 1; avgDelay = (double)totalDelay / cntDelay; double end = getCurrentTime(); -- GitLab