Skip to content

Commit

Permalink
Remove redundant end value for the read byte range
Browse files Browse the repository at this point in the history
An "end" value of Long.MAX_VALUE for the byte range is redundant
as the behavior is the same without specifying it.
  • Loading branch information
brokenjacobs authored and nezihyigitbasi committed Nov 30, 2017
1 parent 8e47f15 commit c5e1b7c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -902,7 +902,7 @@ private InputStream openStream(Path path, long start)
.onRetry(STATS::newGetObjectRetry)
.run("getS3Object", () -> {
try {
GetObjectRequest request = new GetObjectRequest(host, keyFromPath(path)).withRange(start, Long.MAX_VALUE);
GetObjectRequest request = new GetObjectRequest(host, keyFromPath(path)).withRange(start);
return s3.getObject(request).getObjectContent();
}
catch (RuntimeException e) {
Expand Down

0 comments on commit c5e1b7c

Please sign in to comment.