Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Oct 11, 2024
1 parent a3932e9 commit d4969eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
import java.util.concurrent.atomic.AtomicBoolean;

import static org.elasticsearch.index.engine.LuceneChangesSnapshot.getLeafDocIDs;
import static org.elasticsearch.index.engine.LuceneChangesSnapshot.loadFromStoredFields;
import static org.elasticsearch.index.engine.LuceneChangesSnapshot.loadFromSourceLoader;
import static org.elasticsearch.index.engine.LuceneChangesSnapshot.loadFromStoredFields;

/**
* A {@link Translog.Snapshot} implementation that retrieves changes from a Lucene index in batches.
Expand Down Expand Up @@ -167,7 +167,7 @@ public Translog.Operation next() throws IOException {
}
if (op != null) {
assert fromSeqNo <= op.seqNo() && op.seqNo() <= toSeqNo && lastSeenSeqNo < op.seqNo()
: "Unexpected operation; "
: "Unexpected operation; "
+ "last_seen_seqno ["
+ lastSeenSeqNo
+ "], from_seqno ["
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static int[] getLeafDocIDs(ScoreDoc[] scoreDocs, int startIndex, int docBase, in
scoreDocs,
startIndex,
scoreDocs.length,
new ScoreDoc(docBase+maxDoc, Float.NaN, -1),
new ScoreDoc(docBase + maxDoc, Float.NaN, -1),
Comparator.comparingInt(a -> a.doc)
);
if (rightIndex < 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public Builder(
this.indexMode = indexMode;
this.supportsNonDefaultParameterValues = supportsCheckForNonDefaultParams == false
|| settings.getAsBoolean(LOSSY_PARAMETERS_ALLOWED_SETTING_NAME, true);
this.enableRecoverySource = indexMode == IndexMode.LOGSDB ? false : enableRecoverySource;
this.enableRecoverySource = indexMode == IndexMode.LOGSDB ? false : enableRecoverySource;
}

public Builder setSynthetic() {
Expand Down

0 comments on commit d4969eb

Please sign in to comment.