LUCENE-887: setDaemon(true) on merge threads so JVM will exit if only they remain

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@597382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2007-11-22 11:32:35 +00:00
parent aa7c63e82b
commit 02d9b51ede
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
mergeThreads.add(merger);
message(" launch new thread [" + merger.getName() + "]");
merger.setThreadPriority(mergeThreadPriority);
merger.setDaemon(true);
merger.start();
continue;
} else