Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename mergeThreadCount in ConcurrentMergeScheduler to avoid clashing with method of the same name #14171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
private int maxMergeCount = AUTO_DETECT_MERGES_AND_THREADS;

/** How many {@link MergeThread}s have kicked off (this is use to name them). */
protected int mergeThreadCount;
protected int mergeThreadCounter;

/** Floor for IO write rate limit (we will never go any lower than this) */
private static final double MIN_MERGE_MB_PER_SEC = 5.0;
Expand Down Expand Up @@ -673,7 +673,7 @@ protected synchronized MergeThread getMergeThread(MergeSource mergeSource, OneMe
throws IOException {
final MergeThread thread = new MergeThread(mergeSource, merge);
thread.setDaemon(true);
thread.setName("Lucene Merge Thread #" + mergeThreadCount++);
thread.setName("Lucene Merge Thread #" + mergeThreadCounter++);
return thread;
}

Expand Down
Loading