Skip to content

Commit b271c26

Browse files
viper-kunsrowen
authored andcommitted
[SPARK-5661]function hasShutdownDeleteTachyonDir should use shutdownDeleteTachyonPaths to determine whether contains file
hasShutdownDeleteTachyonDir(file: TachyonFile) should use shutdownDeleteTachyonPaths(not shutdownDeletePaths) to determine Whether contain file. To solve it ,delete two unused function. Author: xukun 00228947 <[email protected]> Author: viper-kun <[email protected]> Closes #4418 from viper-kun/deleteunusedfun and squashes the following commits: 87340eb [viper-kun] fix style 3d6c69e [xukun 00228947] fix bug 2bc397e [xukun 00228947] deleteunusedfun
1 parent d8f69cf commit b271c26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ private[spark] object Utils extends Logging {
213213
// Is the path already registered to be deleted via a shutdown hook ?
214214
def hasShutdownDeleteTachyonDir(file: TachyonFile): Boolean = {
215215
val absolutePath = file.getPath()
216-
shutdownDeletePaths.synchronized {
217-
shutdownDeletePaths.contains(absolutePath)
216+
shutdownDeleteTachyonPaths.synchronized {
217+
shutdownDeleteTachyonPaths.contains(absolutePath)
218218
}
219219
}
220220

0 commit comments

Comments
 (0)