Skip to content

Commit f53ae10

Browse files
committed
Drop stray change
Missed a comparator
1 parent ad0f48a commit f53ae10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lucene/core/src/java/org/apache/lucene/index/MergePolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ public double getNoCFSRatio() {
809809
/**
810810
* If a merged segment will be more than this percentage of the total size of the index, leave the
811811
* segment as non-compound file even if compound file is enabled. Set to 1.0 to always use CFS
812-
* regardless of merge size.ue.
812+
* regardless of merge size.
813813
*/
814814
public void setNoCFSRatio(double noCFSRatio) {
815815
if (noCFSRatio < 0.0 || noCFSRatio > 1.0) {

lucene/core/src/java/org/apache/lucene/util/OfflineSorter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ public Partition call() throws IOException {
688688

689689
PriorityQueue<FileAndTop> queue =
690690
PriorityQueue.usingComparator(
691-
segmentsToMerge.size(), Comparator.comparing(ft -> ft.current));
691+
segmentsToMerge.size(), Comparator.comparing(ft -> ft.current, comparator));
692692

693693
ByteSequencesReader[] streams = new ByteSequencesReader[segmentsToMerge.size()];
694694

0 commit comments

Comments
 (0)