Skip to content

Commit 07fc7f0

Browse files
committed
Add back comment that was accidentally removed (minor)
1 parent 5d799fe commit 07fc7f0

File tree

1 file changed

+2
-0
lines changed
  • core/src/main/scala/org/apache/spark/rdd

1 file changed

+2
-0
lines changed

core/src/main/scala/org/apache/spark/rdd/RDD.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ abstract class RDD[T: ClassTag](
255255
}
256256

257257
visit(this)
258+
259+
// In case there is a cycle, do not include the root itself
258260
ancestors.filterNot(_ == this).toSeq
259261
}
260262

0 commit comments

Comments
 (0)