From d1f13f2c84a80385bc6d9d2d39c23faf28228a78 Mon Sep 17 00:00:00 2001 From: Yatao Li Date: Thu, 27 Jan 2022 20:41:01 +0800 Subject: [PATCH] stop scanning gracefully if memory limit target cannot be met --- src/tpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpool.c b/src/tpool.c index 3419f85..9ecce2c 100644 --- a/src/tpool.c +++ b/src/tpool.c @@ -178,7 +178,7 @@ static void *tpool_worker(void *arg) { pthread_mutex_lock(&(pool->work_mutex)); pool->throttle_stuck_cnt += 1; if (pool->throttle_stuck_cnt == pool->thread_cnt) { - LOG_FATAL("tpool.c", "Throttle memory limit too low, cannot proceed!"); + LOG_ERROR("tpool.c", "Throttle memory limit too low, cannot proceed!"); pool->stop = TRUE; } pthread_mutex_unlock(&(pool->work_mutex));