git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@608523 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2008-01-03 15:20:41 +00:00
parent 9e65cd554f
commit f12862426a
1 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ public class TaskSequence extends PerfTask {
private boolean exhausted = false; private boolean exhausted = false;
private boolean resetExhausted = false; private boolean resetExhausted = false;
private PerfTask[] tasksArray; private PerfTask[] tasksArray;
private boolean anyExhaustableTasks; private boolean anyExhaustibleTasks;
public TaskSequence (PerfRunData runData, String name, TaskSequence parent, boolean parallel) { public TaskSequence (PerfRunData runData, String name, TaskSequence parent, boolean parallel) {
super(runData); super(runData);
@ -57,8 +57,8 @@ public class TaskSequence extends PerfTask {
tasksArray = new PerfTask[numTasks]; tasksArray = new PerfTask[numTasks];
for(int k=0;k<numTasks;k++) { for(int k=0;k<numTasks;k++) {
tasksArray[k] = (PerfTask) tasks.get(k); tasksArray[k] = (PerfTask) tasks.get(k);
anyExhaustableTasks |= tasksArray[k] instanceof ResetInputsTask; anyExhaustibleTasks |= tasksArray[k] instanceof ResetInputsTask;
anyExhaustableTasks |= tasksArray[k] instanceof TaskSequence; anyExhaustibleTasks |= tasksArray[k] instanceof TaskSequence;
} }
} }
} }
@ -123,7 +123,7 @@ public class TaskSequence extends PerfTask {
try { try {
final PerfTask task = tasksArray[l]; final PerfTask task = tasksArray[l];
count += task.runAndMaybeStats(letChildReport); count += task.runAndMaybeStats(letChildReport);
if (anyExhaustableTasks) if (anyExhaustibleTasks)
updateExhausted(task); updateExhausted(task);
} catch (NoMoreDataException e) { } catch (NoMoreDataException e) {
exhausted = true; exhausted = true;
@ -148,7 +148,7 @@ public class TaskSequence extends PerfTask {
nextStartTime += delayStep; // this aims at avarage rate. nextStartTime += delayStep; // this aims at avarage rate.
try { try {
count += task.runAndMaybeStats(letChildReport); count += task.runAndMaybeStats(letChildReport);
if (anyExhaustableTasks) if (anyExhaustibleTasks)
updateExhausted(task); updateExhausted(task);
} catch (NoMoreDataException e) { } catch (NoMoreDataException e) {
exhausted = true; exhausted = true;