mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 10:16:42 +00:00
stop scanning gracefully if memory limit target cannot be met
This commit is contained in:
parent
6075c21a3a
commit
d1f13f2c84
@ -178,7 +178,7 @@ static void *tpool_worker(void *arg) {
|
|||||||
pthread_mutex_lock(&(pool->work_mutex));
|
pthread_mutex_lock(&(pool->work_mutex));
|
||||||
pool->throttle_stuck_cnt += 1;
|
pool->throttle_stuck_cnt += 1;
|
||||||
if (pool->throttle_stuck_cnt == pool->thread_cnt) {
|
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;
|
pool->stop = TRUE;
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(&(pool->work_mutex));
|
pthread_mutex_unlock(&(pool->work_mutex));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user