ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [38/50] [abbrv] ignite git commit: IGNITE-264 - Do not record nearXidVersion for near remote transactions.
Date Thu, 03 Sep 2015 01:03:47 GMT
IGNITE-264 - Do not record nearXidVersion for near remote transactions.


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

Branch: refs/heads/ignite-264
Commit: 19cf9fceb5edf200c8e1fdb37fb21d82b90da590
Parents: f5d0340
Author: Alexey Goncharuk <agoncharuk@gridgain.com>
Authored: Thu Aug 27 10:39:45 2015 -0700
Committer: Alexey Goncharuk <agoncharuk@gridgain.com>
Committed: Thu Aug 27 10:39:45 2015 -0700

----------------------------------------------------------------------
 .../internal/processors/cache/transactions/IgniteTxManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/19cf9fce/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxManager.java
index c96edd4..e6ab96e 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxManager.java
@@ -1023,7 +1023,7 @@ public class IgniteTxManager extends GridCacheSharedManagerAdapter {
     public boolean addCommittedTx(IgniteInternalTx tx) {
         boolean res = addCommittedTx(tx.xidVersion(), tx.nearXidVersion());
 
-        if (!tx.local() && tx.onePhaseCommit())
+        if (!tx.local() && !tx.near() && tx.onePhaseCommit())
             addCommittedTx(tx.nearXidVersion(), null);
 
         return res;


Mime
View raw message