Skip to content

Commit

Permalink
if we reselect the batch after an extract, then transfer the extract …
Browse files Browse the repository at this point in the history
…millis over to the newly selected batch
  • Loading branch information
chenson42 committed Jun 22, 2011
1 parent 00df0cb commit 6651284
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -488,8 +488,10 @@ public List<OutgoingBatch> extract(Node node, IOutgoingTransport targetTransport
- outgoingBatch.getLastUpdatedTime().getTime() > MS_PASSED_BEFORE_BATCH_REQUERIED) {
outgoingBatch = outgoingBatchService
.findOutgoingBatch(currentBatch.getBatchId());
outgoingBatch.setExtractMillis(currentBatch.getExtractMillis());
currentBatch = outgoingBatch;
}

if (outgoingBatch.getStatus() != Status.OK) {
outgoingBatch.setStatus(OutgoingBatch.Status.SE);
outgoingBatch.setSentCount(outgoingBatch.getSentCount() + 1);
Expand Down

0 comments on commit 6651284

Please sign in to comment.