mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 10:40:49 +00:00
Reset counter if background pool is full
This commit is contained in:
parent
0b032e852d
commit
7792b09911
@ -58,6 +58,7 @@ void IBackgroundJobExecutor::scheduleTask(bool with_backoff)
|
||||
}
|
||||
else
|
||||
{
|
||||
no_work_done_count = 0; /// We have work, but run without backoff
|
||||
next_time_to_execute = 1000 * sleep_settings.thread_sleep_seconds_if_nothing_to_do;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user