Skip to content

Commit

Permalink
use readFully in FixedLengthBinaryRecordReader
Browse files Browse the repository at this point in the history
  • Loading branch information
industrial-sloth committed Nov 4, 2014
1 parent b904518 commit a245c8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private[spark] class FixedLengthBinaryRecordReader
if (currentPosition < splitEnd) {
// setup a buffer to store the record
val buffer = recordValue.getBytes
fileInputStream.read(buffer, 0, recordLength)
fileInputStream.readFully(buffer)
// update our current position
currentPosition = currentPosition + recordLength
// return true
Expand Down

0 comments on commit a245c8a

Please sign in to comment.