You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2018/08/22 02:06:33 UTC

[2/2] activemq-artemis git commit: NO-JIRA Adding trace on RA Scan

NO-JIRA Adding trace on RA Scan

(cherry picked from commit 7558997d02565c2760bb3c4f5985e2c0ff52ce0c)


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/7cd6184e
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/7cd6184e
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/7cd6184e

Branch: refs/heads/2.6.x
Commit: 7cd6184e85ef24b294a8b41ebebb4257f2cbda67
Parents: ca113c1
Author: Clebert Suconic <cl...@apache.org>
Authored: Tue Aug 21 21:59:13 2018 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Tue Aug 21 22:06:25 2018 -0400

----------------------------------------------------------------------
 .../core/protocol/core/impl/ActiveMQSessionContext.java  | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7cd6184e/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ActiveMQSessionContext.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ActiveMQSessionContext.java b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ActiveMQSessionContext.java
index fccb041..cbbfcab 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ActiveMQSessionContext.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/ActiveMQSessionContext.java
@@ -573,6 +573,17 @@ public class ActiveMQSessionContext extends SessionContext {
 
       Xid[] xidArray = xids.toArray(new Xid[xids.size()]);
 
+      if (logger.isTraceEnabled()) {
+         StringBuffer buffer = new StringBuffer();
+         for (int i = 0; i < xidArray.length; i++) {
+            buffer.append(xidArray[i].toString());
+            if (i + 1 < xidArray.length) {
+               buffer.append(",");
+            }
+         }
+         logger.trace("xaScan returning " + xidArray.length + " xids = [" + buffer.toString() + "]");
+      }
+
       return xidArray;
    }