Skip to content

Commit

Permalink
fix for ChronicleReader infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryShea committed Dec 1, 2017
1 parent 2d603ba commit b7e4cbd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -150,7 +150,8 @@ ChronicleReader withDocumentPollMethod(final Function<ExcerptTailer, DocumentCon
}

private boolean queueHasBeenModifiedSinceLastCheck(final long lastObservedTailIndex) {
return getCurrentTailIndex() != lastObservedTailIndex;
long currentTailIndex = getCurrentTailIndex();
return currentTailIndex > lastObservedTailIndex;
}

private void moveToSpecifiedPosition(final ChronicleQueue ic, final ExcerptTailer tailer, final boolean isFirstIteration) {
Expand Down

0 comments on commit b7e4cbd

Please sign in to comment.