aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorHenry Saputra <henry@platfora.com>2013-12-05 18:50:26 -0800
committerHenry Saputra <henry@platfora.com>2013-12-05 18:50:26 -0800
commit1cb259cb577bfd3385cca6bb187d7fee18bd2c24 (patch)
tree23dd42f8202206566e77488b81d5a7d9b3bd5d98 /core
parent5d460253d6080d871cb71efb112ea17be0873771 (diff)
downloadspark-1cb259cb577bfd3385cca6bb187d7fee18bd2c24.tar.gz
spark-1cb259cb577bfd3385cca6bb187d7fee18bd2c24.tar.bz2
spark-1cb259cb577bfd3385cca6bb187d7fee18bd2c24.zip
Change the name of input ragument in ClusterScheduler#initialize from context to backend.
The SchedulerBackend used to be called ClusterSchedulerContext so just want to make small change of the input param in the ClusterScheduler#initialize to reflect this.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/scheduler/cluster/ClusterScheduler.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/scala/org/apache/spark/scheduler/cluster/ClusterScheduler.scala b/core/src/main/scala/org/apache/spark/scheduler/cluster/ClusterScheduler.scala
index c1e65a3c48..f475d000bd 100644
--- a/core/src/main/scala/org/apache/spark/scheduler/cluster/ClusterScheduler.scala
+++ b/core/src/main/scala/org/apache/spark/scheduler/cluster/ClusterScheduler.scala
@@ -100,8 +100,8 @@ private[spark] class ClusterScheduler(val sc: SparkContext)
this.dagScheduler = dagScheduler
}
- def initialize(context: SchedulerBackend) {
- backend = context
+ def initialize(backend: SchedulerBackend) {
+ this.backend = backend
// temporarily set rootPool name to empty
rootPool = new Pool("", schedulingMode, 0, 0)
schedulableBuilder = {