mirror of https://github.com/apache/lucene.git
LUCENE-2755: fix accidental commit that caused CMS to deadlock
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1060437 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
78e306799d
commit
43fe48710b
|
@ -274,7 +274,9 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
|
|||
protected synchronized int mergeThreadCount() {
|
||||
int count = 0;
|
||||
for (MergeThread mt : mergeThreads) {
|
||||
if (mt.isAlive()) count++;
|
||||
if (mt.isAlive() && mt.getCurrentMerge() != null) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue