Author: rareddy
Date: 2011-06-28 20:24:02 -0400 (Tue, 28 Jun 2011)
New Revision: 3289
Modified:
branches/7.4.x/engine/src/main/java/org/teiid/dqp/internal/process/RequestWorkItem.java
Log:
TEIID-1663: only not calling suspend in case of transaction does not exist
Modified:
branches/7.4.x/engine/src/main/java/org/teiid/dqp/internal/process/RequestWorkItem.java
===================================================================
---
branches/7.4.x/engine/src/main/java/org/teiid/dqp/internal/process/RequestWorkItem.java 2011-06-28
20:56:20 UTC (rev 3288)
+++
branches/7.4.x/engine/src/main/java/org/teiid/dqp/internal/process/RequestWorkItem.java 2011-06-29
00:24:02 UTC (rev 3289)
@@ -293,7 +293,7 @@
}
private void suspend() {
- if (this.transactionState == TransactionState.ACTIVE &&
this.transactionContext.getTransaction() != null) {
+ if ((this.transactionState != TransactionState.NONE) &&
this.transactionContext.getTransaction() != null) {
try {
this.transactionService.suspend(this.transactionContext);
} catch (XATransactionException e) {
Show replies by date