Skip to content
Snippets Groups Projects
Commit a7d967a1 authored by Shivaram Venkataraman's avatar Shivaram Venkataraman
Browse files

Remove unnecessary hash-map put in MemoryStore

parent 51477e88
No related branches found
No related tags found
No related merge requests found
...@@ -37,9 +37,6 @@ private class MemoryStore(blockManager: BlockManager, maxMemory: Long) ...@@ -37,9 +37,6 @@ private class MemoryStore(blockManager: BlockManager, maxMemory: Long)
val sizeEstimate = SizeEstimator.estimate(elements.asInstanceOf[AnyRef]) val sizeEstimate = SizeEstimator.estimate(elements.asInstanceOf[AnyRef])
tryToPut(blockId, elements, sizeEstimate, true) tryToPut(blockId, elements, sizeEstimate, true)
} else { } else {
val entry = new Entry(bytes, bytes.limit, false)
ensureFreeSpace(blockId, bytes.limit)
synchronized { entries.put(blockId, entry) }
tryToPut(blockId, bytes, bytes.limit, false) tryToPut(blockId, bytes, bytes.limit, false)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment