Fix variable shadowing bug in dispatcher_impl.cc

PiperOrigin-RevId: 324150733
Change-Id: I9128b6462643b103ad313f649d03f366a2208f45
This commit is contained in:
Andrew Audibert 2020-07-30 22:16:52 -07:00 committed by TensorFlower Gardener
parent 23d1fc173e
commit f6cc28bda0

View File

@ -114,8 +114,8 @@ Status DataServiceDispatcherImpl::WorkerUpdate(
}
task->finished = true;
bool finished = true;
for (const auto& task : tasks_by_job_[task->job_id]) {
if (!task->finished) {
for (const auto& job_task : tasks_by_job_[task->job_id]) {
if (!job_task->finished) {
finished = false;
break;
}