Author: rareddy
Date: 2011-06-09 15:23:59 -0400 (Thu, 09 Jun 2011)
New Revision: 3240
Modified:
branches/7.4.x/engine/src/main/java/org/teiid/dqp/internal/process/RequestWorkItem.java
Log:
misc: avoid a verbose logging call when the transaction is NONE and or null
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-09
18:45:13 UTC (rev 3239)
+++
branches/7.4.x/engine/src/main/java/org/teiid/dqp/internal/process/RequestWorkItem.java 2011-06-09
19:23:59 UTC (rev 3240)
@@ -293,10 +293,12 @@
}
private void suspend() {
- try {
- this.transactionService.suspend(this.transactionContext);
- } catch (XATransactionException e) {
- LogManager.logDetail(LogConstants.CTX_DQP, e, "Error suspending active
transaction"); //$NON-NLS-1$
+ if (this.transactionState == TransactionState.ACTIVE &&
this.transactionContext.getTransaction() != null) {
+ try {
+ this.transactionService.suspend(this.transactionContext);
+ } catch (XATransactionException e) {
+ LogManager.logDetail(LogConstants.CTX_DQP, e, "Error suspending active
transaction"); //$NON-NLS-1$
+ }
}
}
Show replies by date