mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-30 05:30:51 +00:00
Task cannot be scheduled and deactivated in the same time.
This commit is contained in:
parent
24de8d624f
commit
23aee5ed5b
@ -131,7 +131,7 @@ void BackgroundSchedulePool::TaskInfo::execute()
|
|||||||
/// on the queue. We don't call the function again here because this way all tasks
|
/// on the queue. We don't call the function again here because this way all tasks
|
||||||
/// will have their chance to execute
|
/// will have their chance to execute
|
||||||
|
|
||||||
if(scheduled && !deactivated)
|
if(scheduled)
|
||||||
pool.queue.enqueueNotification(new TaskNotification(shared_from_this()));
|
pool.queue.enqueueNotification(new TaskNotification(shared_from_this()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user