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

Also flush serializer in revertPartialWrites

parent b79b10a6
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,7 @@ private class DiskStore(blockManager: BlockManager, rootDirs: String)
override def revertPartialWrites() {
// Discard current writes. We do this by flushing the outstanding writes and
// truncate the file to the last valid position.
objOut.flush()
bs.flush()
channel.truncate(lastValidPosition)
}
......
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