mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
add comment
This commit is contained in:
parent
614e0d9ba0
commit
35a770a7f6
@ -354,6 +354,9 @@ void DDLWorker::scheduleTasks(bool reinitialized)
|
||||
{
|
||||
/// We didn't even executed a query, so let's just remove it.
|
||||
/// We will try to read the task again and execute it from the beginning.
|
||||
/// NOTE: We can safely compare entry names as Strings, because they are padded.
|
||||
/// Entry name always starts with "query-" and contain exactly 10 decimal digits
|
||||
/// of log entry number (with leading zeros).
|
||||
if (!first_failed_task_name || task->entry_name < *first_failed_task_name)
|
||||
first_failed_task_name = task->entry_name;
|
||||
task_it = current_tasks.erase(task_it);
|
||||
|
Loading…
Reference in New Issue
Block a user