ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject ignite git commit: IGNITE-8736 Add transaction label to CU.txString() method output - Fixes #4152.
Date Wed, 13 Jun 2018 14:25:41 GMT
Repository: ignite
Updated Branches:
  refs/heads/master dc87cda5b -> c29be375c


IGNITE-8736 Add transaction label to CU.txString() method output - Fixes #4152.

Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/c29be375
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/c29be375
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/c29be375

Branch: refs/heads/master
Commit: c29be375c194c8c05638fe47b3c53f051e14cdb0
Parents: dc87cda
Author: Sergey Kosarev <skosarev@gridgain.com>
Authored: Wed Jun 13 17:24:42 2018 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Wed Jun 13 17:24:42 2018 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/processors/cache/GridCacheUtils.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c29be375/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
index fca01b6..91e9816 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
@@ -826,7 +826,9 @@ public class GridCacheUtils {
             ", rollbackOnly=" + tx.isRollbackOnly() +
             ", nodeId=" + tx.nodeId() +
             ", timeout=" + tx.timeout() +
-            ", duration=" + (U.currentTimeMillis() - tx.startTime()) + ']';
+            ", duration=" + (U.currentTimeMillis() - tx.startTime()) +
+            (tx instanceof GridNearTxLocal ? ", label=" + ((GridNearTxLocal)tx).label() :
"") +
+            ']';
     }
 
     /**


Mime
View raw message