Skip to content

Commit

Permalink
Merge pull request taosdata#21 from amosbird/t1
Browse files Browse the repository at this point in the history
Don't SEGFAULT
  • Loading branch information
hzcheng authored Jul 16, 2019
2 parents a4ba49d + 5f7ee42 commit 4173a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/src/tlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void taosStopLog() {
void taosCloseLogger() {
taosStopLog();
sem_post(&(logHandle->buffNotEmpty));
pthread_join(logHandle->asyncThread, NULL);
if (logHandle->asyncThread) pthread_join(logHandle->asyncThread, NULL);
// In case that other threads still use log resources causing invalid write in
// valgrind, we comment two lines below.
// taosLogBuffDestroy(logHandle);
Expand Down

0 comments on commit 4173a8b

Please sign in to comment.