From 80cb27c795572552ea561f2334a9d12602518d3e Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sat, 22 Aug 2020 08:13:55 +0800 Subject: [PATCH] tlog: update tlog --- src/tlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tlog.c b/src/tlog.c index 7162fb1..47b1cfe 100644 --- a/src/tlog.c +++ b/src/tlog.c @@ -1377,7 +1377,7 @@ static void *_tlog_work(void *arg) log = _tlog_wait_log_locked(log); if (log == NULL) { pthread_mutex_unlock(&tlog.lock); - if (errno != ETIMEDOUT) { + if (errno != ETIMEDOUT && tlog.run) { sleep(1); } continue;