From f7f8edc0b128e12c22ac13bf01a7c03887c13ead Mon Sep 17 00:00:00 2001 From: Yurun Date: Fri, 10 Dec 2021 16:03:21 +0800 Subject: [PATCH] Fix --- src/util/src/tlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tlog.c b/src/util/src/tlog.c index e4a66d6bee..7b5dafcc8e 100644 --- a/src/util/src/tlog.c +++ b/src/util/src/tlog.c @@ -131,7 +131,7 @@ void taosCloseLog() { taosStopLog(); //tsem_post(&(tsLogObj.logHandle->buffNotEmpty)); taosMsleep(MAX_LOG_INTERVAL/1000); - if (tsLogObj.logHandle && tsLogObj.logHandle->asyncThread && taosCheckPthreadValid(tsLogObj.logHandle->asyncThread)) { + if (tsLogObj.logHandle && taosCheckPthreadValid(tsLogObj.logHandle->asyncThread)) { pthread_join(tsLogObj.logHandle->asyncThread, NULL); } // In case that other threads still use log resources causing invalid write in valgrind -- GitLab