Skip to content

Commit

Permalink
Fix bug introduced by line length adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaram committed Feb 13, 2015
1 parent 34d0283 commit 774751b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1340,8 +1340,8 @@ class DAGScheduler(
if (status.contains(partition)) {
// Select first few locations as preferred locations for the reducer
val topLocs = CollectionUtils.takeOrdered(
status(partition).iterator, NUM_REDUCER_PREF_LOCS)
(Ordering.by[(BlockManagerId, Long), Long](_._2).reverse).toSeq
status(partition).iterator, NUM_REDUCER_PREF_LOCS)(
Ordering.by[(BlockManagerId, Long), Long](_._2).reverse).toSeq
return topLocs.map(_._1).map(loc => TaskLocation(loc.host, loc.executorId))
}
}
Expand Down

0 comments on commit 774751b

Please sign in to comment.