Skip to content

Commit

Permalink
Replace nocommit by norelease
Browse files Browse the repository at this point in the history
The temporary fix was marked incorrectly with nocommit.
It should be marked with norelease.
  • Loading branch information
dnhatn committed May 28, 2018
1 parent 7004d2c commit 345b496
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private TopDocs searchOperations(IndexSearcher searcher) throws IOException {
new SortedNumericSortField(SeqNoFieldMapper.NAME, SortField.Type.LONG),
new SortedNumericSortField(SeqNoFieldMapper.PRIMARY_TERM_NAME, SortField.Type.LONG, true)
);
// nocommit - limits the number of hits
// norelease - limits the number of hits
final long numHits = Math.min((toSeqNo + 1 - fromSeqNo) * 2, Integer.MAX_VALUE - 1);
return searcher.search(rangeQuery, Math.toIntExact(numHits), sortedBySeqNoThenByTerm);
}
Expand Down

0 comments on commit 345b496

Please sign in to comment.