ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [31/50] incubator-ignite git commit: # Fixed invalid "clientNode" invariant.
Date Fri, 27 Mar 2015 09:40:59 GMT
# Fixed invalid "clientNode" invariant.


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

Branch: refs/heads/ignite-497
Commit: ea903772efcb978c4b653687b675d0ff0469c842
Parents: 828d711
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Thu Mar 26 15:52:33 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Thu Mar 26 15:52:33 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/managers/discovery/GridDiscoveryManager.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea903772/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
index 3cd6aab..c4633c3 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
@@ -2449,7 +2449,7 @@ public class GridDiscoveryManager extends GridManagerAdapter<DiscoverySpi>
{
 
         /**
          * @param node Node to check.
-         * @return {@code True} if near cache is present on the given nodes.
+         * @return {@code True} if client cache is present on the given nodes.
          */
         public boolean clientNode(ClusterNode node) {
             if (node.isDaemon())
@@ -2457,7 +2457,7 @@ public class GridDiscoveryManager extends GridManagerAdapter<DiscoverySpi>
{
 
             Boolean near = clientNodes.get(node.id());
 
-            return near != null && !near;
+            return near == null || !near;
         }
     }
 }


Mime
View raw message