// Registers task as in-flight and moves read level to it. Tasks can be added in increasing order of taskID only.
m.Lock()
defer m.Unlock()
if m.readLevel >= taskID {
m.logger.Fatal("Next task ID is less than current read level.",
tag.TaskID(taskID),
tag.ReadLevel(m.readLevel))
}
if _, found := m.outstandingTasks.Get(taskID); found {
m.logger.Fatal("Already present in outstanding tasks", tag.TaskID(taskID))
}
m.backlogCountHint.Add(1)
}