466
evictedAnyTasks = true
467
if task, ok := it.Value().(*internalTask); ok {
469
>
tr.backlogAge.record(task.event.Data.CreateTime, -1)
470
>
tr.loadedTasks--
471
>
softassert.That(tr.logger, tr.loadedTasks >= 0, "loadedTasks went negative")
472
>
tr.outstandingTasks.Remove(it.Key().(fairLevel))
473
>
474
>
// Note that the task may have already been matched and removed from the matcher,
475
>
// but not completed yet. In that case this will be a noop. See comment at the top
476
>
// of completeTask. Lock order: task reader lock < matcher lock so this is okay.
477
>
task.setEvicted()
478
>
}
479
}
480