ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: # Use ClusterNode.isClient() instead of clientRouterNodeId()
Date Thu, 07 May 2015 08:45:32 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-836_2 0bfd42b44 -> 490827ead


# Use ClusterNode.isClient() instead of clientRouterNodeId()


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

Branch: refs/heads/ignite-836_2
Commit: 490827eadeaccf37d0dac341e426c60dca176b03
Parents: 0bfd42b
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Thu May 7 11:44:35 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Thu May 7 11:44:35 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/continuous/GridContinuousProcessor.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/490827ea/modules/core/src/main/java/org/apache/ignite/internal/processors/continuous/GridContinuousProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/continuous/GridContinuousProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/continuous/GridContinuousProcessor.java
index af25b46..43df436 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/continuous/GridContinuousProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/continuous/GridContinuousProcessor.java
@@ -202,7 +202,7 @@ public class GridContinuousProcessor extends GridProcessorAdapter {
 
                         unregisterRemote(routineId);
 
-                        if (((TcpDiscoveryNode)snd).clientRouterNodeId() != null) {
+                        if (snd.isClient()) {
                             Map<UUID, LocalRoutineInfo> infoMap = clientInfos.get(snd.id());
 
                             if (infoMap != null)
@@ -647,7 +647,7 @@ public class GridContinuousProcessor extends GridProcessorAdapter {
             U.error(log, "Failed to register handler [nodeId=" + node.id() + ", routineId="
+ routineId + ']', e);
         }
 
-        if (((TcpDiscoveryNode)node).clientRouterNodeId() != null) {
+        if (node.isClient()) {
             Map<UUID, LocalRoutineInfo> clientRouteMap = clientInfos.get(node.id());
 
             if (clientRouteMap == null) {


Mime
View raw message