var to val

This commit is contained in:
Shivaram Venkataraman 2013-06-03 12:29:38 -07:00
parent cd347f547a
commit 96943a1cc0

View file

@ -195,7 +195,7 @@ private class DiskStore(blockManager: BlockManager, rootDirs: String)
}
private def createFile(blockId: String, allowAppendExisting: Boolean = false): File = {
var file = getFile(blockId)
val file = getFile(blockId)
if (!allowAppendExisting && file.exists()) {
// NOTE(shivaram): Delete the file if it exists. This might happen if a ShuffleMap task
// was rescheduled on the same machine as the old task ?