Navigation Menu

Skip to content

Commit

Permalink
0004187: Initial load queue and router service blocking each other
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Dec 9, 2019
1 parent 3679cf9 commit 27a33d3
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -258,7 +258,11 @@ public void insertOutgoingBatch(ISqlTransaction transaction, OutgoingBatch outgo

long batchId = outgoingBatch.getBatchId();
if (batchId <= 0) {
batchId = sequenceService.nextVal(Constants.SEQUENCE_OUTGOING_BATCH);
if (platform.supportsMultiThreadedTransactions()) {
batchId = sequenceService.nextVal(Constants.SEQUENCE_OUTGOING_BATCH);
} else {
batchId = sequenceService.nextVal(transaction, Constants.SEQUENCE_OUTGOING_BATCH);
}
}
transaction.prepareAndExecute(getSql("insertOutgoingBatchSql"), batchId, outgoingBatch.getNodeId(), outgoingBatch.getChannelId(),
outgoingBatch.getStatus().name(), outgoingBatch.getLoadId(), outgoingBatch.isExtractJobFlag() ? 1 : 0,
Expand Down

0 comments on commit 27a33d3

Please sign in to comment.