Skip to content

Commit

Permalink
Drop bool
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidan committed Feb 22, 2025
1 parent 1b0ca70 commit 979203a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ protected SearchHit nextDoc(int doc) throws IOException {
// we do so whenever one of the following is true:
// 1. we have accumulated at least the size of the memory accounting buffer
// 2. we have reached the last document in the leaf
boolean enoughBytesOrLastDocInLeaf = (accumulatedBytesInLeaf >= context.memAccountingBufferSize())
|| (processedDocs == docsInLeaf);
if (enoughBytesOrLastDocInLeaf) {
if (accumulatedBytesInLeaf >= context.memAccountingBufferSize() || processedDocs == docsInLeaf) {
context.circuitBreaker().addEstimateBytesAndMaybeBreak(0, "fetch source");
accumulatedBytesInLeaf = 0;
}
Expand Down

0 comments on commit 979203a

Please sign in to comment.