Skip to content

Commit

Permalink
fix scala style bug
Browse files Browse the repository at this point in the history
  • Loading branch information
witgo committed May 14, 2014
1 parent 1d35c3c commit 689495d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/scala/org/apache/spark/Partitioner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ class BoundaryPartitioner[K : Ordering : ClassTag, V](
* 3 partitions, 500 keys / partition and if rdd has 700 keys, 1 partition will be entirely
* empty.
*/
if(counts(currPartition) >= keysPerPartition)
if(counts(currPartition) >= keysPerPartition) {
currPartition = (currPartition + 1) % numPartitions
}
partition
}

Expand Down

0 comments on commit 689495d

Please sign in to comment.