LUCENE-2079: fix BG thread priority to actually take effect

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@895755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-01-04 19:37:45 +00:00
parent 3f0577a92a
commit 03a361c224
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ public class TaskSequence extends PerfTask {
bgTasks = new ArrayList<RunBackgroundTask>();
}
RunBackgroundTask bgTask = new RunBackgroundTask(task, letChildReport);
bgTask.setPriority(getBackgroundDeltaPriority() + Thread.currentThread().getPriority());
bgTask.setPriority(task.getBackgroundDeltaPriority() + Thread.currentThread().getPriority());
bgTask.start();
bgTasks.add(bgTask);
} else {

View File

@ -121,7 +121,7 @@ public class TestPerfTasksLogic extends LuceneTestCase {
// disabled until we fix BG thread prio -- this test
// causes build to hang
public void XXXtestBGSearchTaskThreads() throws Exception {
public void testBGSearchTaskThreads() throws Exception {
String algLines[] = {
"log.time.step.msec = 100",
"log.step=100000",