Skip to content
Snippets Groups Projects
Commit 00c4d238 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #518 from woggling/long-bm-sizes

Send block sizes as longs in BlockManager updates
parents cbf8f0d4 769d3996
No related branches found
No related tags found
No related merge requests found
...@@ -49,16 +49,16 @@ class UpdateBlockInfo( ...@@ -49,16 +49,16 @@ class UpdateBlockInfo(
blockManagerId.writeExternal(out) blockManagerId.writeExternal(out)
out.writeUTF(blockId) out.writeUTF(blockId)
storageLevel.writeExternal(out) storageLevel.writeExternal(out)
out.writeInt(memSize.toInt) out.writeLong(memSize)
out.writeInt(diskSize.toInt) out.writeLong(diskSize)
} }
override def readExternal(in: ObjectInput) { override def readExternal(in: ObjectInput) {
blockManagerId = BlockManagerId(in) blockManagerId = BlockManagerId(in)
blockId = in.readUTF() blockId = in.readUTF()
storageLevel = StorageLevel(in) storageLevel = StorageLevel(in)
memSize = in.readInt() memSize = in.readLong()
diskSize = in.readInt() diskSize = in.readLong()
} }
} }
......
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