RESOLVED - issue BATCH-1272: Write skips do not work in a multi-threaded step

Fixed boolean logic in repeat callback
This commit is contained in:
dsyer
2009-06-04 16:59:19 +00:00
parent 20c9540c67
commit 5ec37d5d00

View File

@@ -77,7 +77,7 @@ public abstract class StepContextRepeatCallback implements RepeatCallback {
try {
logger.debug("Chunk execution starting: worker count="+workerCount.get()+", queue size="+attributeQueue.size());
return RepeatStatus.continueIf(doInChunkContext(context, chunkContext).isContinuable()
|| (attributeQueue.isEmpty() && workerCount.get()>1));
|| !attributeQueue.isEmpty() || workerCount.get()>1);
}
finally {
workerCount.decrementAndGet();