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