Skip to content

Commit

Permalink
[Java] Remove redundant recordingId check in catalog forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
JPWatson committed Jun 21, 2018
1 parent 950fb0d commit f01b728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aeron-archive/src/main/java/io/aeron/archive/Catalog.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ boolean hasRecording(final long recordingId)
void forEach(final CatalogEntryProcessor consumer)
{
long recordingId = 0L;
while (recordingId <= maxRecordingId && wrapDescriptor(recordingId, catalogBuffer))
while (wrapDescriptor(recordingId, catalogBuffer))
{
descriptorHeaderDecoder.wrap(
catalogBuffer, 0, DESCRIPTOR_HEADER_LENGTH, RecordingDescriptorHeaderDecoder.SCHEMA_VERSION);
Expand Down

0 comments on commit f01b728

Please sign in to comment.