Skip to content

Commit

Permalink
Remove unused param in unfoldSafely
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Jul 9, 2014
1 parent ec728d8 commit d9d02a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/CacheManager.scala
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private[spark] class CacheManager(blockManager: BlockManager) extends Logging {
* single partition. Instead, we unfold the values cautiously, potentially aborting and
* dropping the partition to disk if applicable.
*/
blockManager.memoryStore.unfoldSafely(key, values, storageLevel, updatedBlocks) match {
blockManager.memoryStore.unfoldSafely(key, values, updatedBlocks) match {
case Left(arrayValues) =>
// We have successfully unfolded the entire partition, so cache it in memory
updatedBlocks ++= blockManager.put(key, arrayValues, storageLevel, tellMaster = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private[spark] class MemoryStore(blockManager: BlockManager, maxMemory: Long)
level: StorageLevel,
returnValues: Boolean): PutResult = {
val droppedBlocks = new ArrayBuffer[(BlockId, BlockStatus)]
val unfoldedValues = unfoldSafely(blockId, values, level, droppedBlocks)
val unfoldedValues = unfoldSafely(blockId, values, droppedBlocks)
unfoldedValues match {
case Left(arrayValues) =>
// Values are fully unfolded in memory, so store them as an array
Expand Down Expand Up @@ -187,7 +187,6 @@ private[spark] class MemoryStore(blockManager: BlockManager, maxMemory: Long)
def unfoldSafely(
blockId: BlockId,
values: Iterator[Any],
storageLevel: StorageLevel,
droppedBlocks: ArrayBuffer[(BlockId, BlockStatus)])
: Either[Array[Any], Iterator[Any]] = {

Expand Down

0 comments on commit d9d02a8

Please sign in to comment.