Skip to content

Commit

Permalink
Make ignoreParent false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Or committed May 8, 2015
1 parent e61b1ab commit 202dac1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private[spark] object RDDOperationScope {
sc: SparkContext,
allowNesting: Boolean = false)(body: => T): T = {
val callerMethodName = Thread.currentThread.getStackTrace()(3).getMethodName
withScope[T](sc, callerMethodName, allowNesting, ignoreParent = false)(body)
withScope[T](sc, callerMethodName, allowNesting)(body)
}

/**
Expand All @@ -116,7 +116,7 @@ private[spark] object RDDOperationScope {
sc: SparkContext,
name: String,
allowNesting: Boolean,
ignoreParent: Boolean)(body: => T): T = {
ignoreParent: Boolean = false)(body: => T): T = {
// Save the old scope to restore it later
val scopeKey = SparkContext.RDD_SCOPE_KEY
val noOverrideKey = SparkContext.RDD_SCOPE_NO_OVERRIDE_KEY
Expand Down

0 comments on commit 202dac1

Please sign in to comment.