Skip to content

Commit

Permalink
Updating the checksum code to handle computation for a buffer range
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay Soman committed Aug 1, 2012
1 parent a95260a commit d15b605
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -291,11 +291,11 @@ private void copyFileWithCheckSum(FileSystem fs,
if(read < 0) {
break;
} else {
output.write(buffer, 0, read);
output.write(buffer, 0, read);
}

if(fileCheckSumGenerator != null)
fileCheckSumGenerator.update(buffer);
fileCheckSumGenerator.update(buffer, 0, read);
if(throttler != null)
throttler.maybeThrottle(read);
stats.recordBytes(read);
Expand Down

0 comments on commit d15b605

Please sign in to comment.