Skip to content

Commit

Permalink
fixup! refactor: fetch and catch parts of segment instead of chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed Oct 18, 2023
1 parent 58fb67f commit 85dd305
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,7 @@ public InputStream fetchLogSegment(final RemoteLogSegmentMetadata remoteLogSegme
range.size());

final var segmentManifest = fetchSegmentManifest(remoteLogSegmentMetadata);

final var suffix = ObjectKeyFactory.Suffix.LOG;
final var key = objectKey(remoteLogSegmentMetadata, suffix);

final var key = objectKey(remoteLogSegmentMetadata, ObjectKeyFactory.Suffix.LOG);
final var fetchEnumeration = new FetchEnumeration(fetchManager, key, segmentManifest, range, partSize);
maybePreFetch(key, segmentManifest, fetchEnumeration);
return fetchEnumeration.toInputStream();
Expand Down

0 comments on commit 85dd305

Please sign in to comment.