Repository: spark
Updated Branches:
  refs/heads/master 8cb23a1f9 -> 3b5aaa6a5


[Core][minor] remove unused `visitedStages` in `DAGScheduler.stageDependsOn`

We define and update `visitedStages` in `DAGScheduler.stageDependsOn`, but 
never read it. So we can safely remove it.

Author: Wenchen Fan <cloud0...@outlook.com>

Closes #5086 from cloud-fan/minor and squashes the following commits:

24663ea [Wenchen Fan] remove un-used variable


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/3b5aaa6a
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/3b5aaa6a
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/3b5aaa6a

Branch: refs/heads/master
Commit: 3b5aaa6a5fe0d838a8570c9d500ebca5f63764f8
Parents: 8cb23a1
Author: Wenchen Fan <cloud0...@outlook.com>
Authored: Thu Mar 19 15:25:32 2015 -0400
Committer: Sean Owen <so...@cloudera.com>
Committed: Thu Mar 19 15:25:32 2015 -0400

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/3b5aaa6a/core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala 
b/core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
index 1021172..8feac6c 100644
--- a/core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
+++ b/core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
@@ -1262,7 +1262,6 @@ class DAGScheduler(
       return true
     }
     val visitedRdds = new HashSet[RDD[_]]
-    val visitedStages = new HashSet[Stage]
     // We are manually maintaining a stack here to prevent StackOverflowError
     // caused by recursively visiting
     val waitingForVisit = new Stack[RDD[_]]
@@ -1274,7 +1273,6 @@ class DAGScheduler(
             case shufDep: ShuffleDependency[_, _, _] =>
               val mapStage = getShuffleMapStage(shufDep, stage.jobId)
               if (!mapStage.isAvailable) {
-                visitedStages += mapStage
                 waitingForVisit.push(mapStage.rdd)
               }  // Otherwise there's no need to follow the dependency back
             case narrowDep: NarrowDependency[_] =>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to