Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating the checksum code to handle computation for a buffer range

  • Loading branch information...
commit d15b6059ee2e9e624d3ccc281a6cf622b2407f91 1 parent a95260a
Chinmay Soman authored
View
4 contrib/hadoop-store-builder/src/java/voldemort/store/readonly/fetcher/HdfsFetcher.java
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.