mirror of
https://github.com/simon987/sist2.git
synced 2025-12-11 14:38:54 +00:00
stop scanning gracefully if memory limit target cannot be met
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user