Skip to content

Commit e10e59f

Browse files
committed
Fix a silly mistake
1 parent f582b17 commit e10e59f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/main/scala/org/apache/spark/util/HadoopFSUtils.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ private[spark] object HadoopFSUtils extends Logging {
6565
ignoreLocality: Boolean,
6666
parallelismThreshold: Int,
6767
parallelismMax: Int): Seq[(Path, Seq[FileStatus])] = {
68-
parallelListLeafFilesInternal(sc, paths, hadoopConf, filter, true, ignoreMissingFiles,
69-
ignoreLocality, parallelismThreshold, parallelismMax)
68+
parallelListLeafFilesInternal(sc, paths, hadoopConf, filter, isRootLevel = true,
69+
ignoreMissingFiles, ignoreLocality, parallelismThreshold, parallelismMax)
7070
}
7171

7272
private def parallelListLeafFilesInternal(
@@ -212,11 +212,12 @@ private[spark] object HadoopFSUtils extends Logging {
212212
val (dirs, topLevelFiles) = statuses.partition(_.isDirectory)
213213
val nestedFiles: Seq[FileStatus] = contextOpt match {
214214
case Some(context) if dirs.size > parallelismThreshold =>
215-
parallelListLeafFiles(
215+
parallelListLeafFilesInternal(
216216
context,
217217
dirs.map(_.getPath),
218218
hadoopConf = hadoopConf,
219219
filter = filter,
220+
isRootLevel = false,
220221
ignoreMissingFiles = ignoreMissingFiles,
221222
ignoreLocality = ignoreLocality,
222223
parallelismThreshold = parallelismThreshold,

0 commit comments

Comments
 (0)