IGNITE-6102 - Do not run consistency check for client and daemon nodes

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

Branch: refs/heads/ignite-5578
Commit: 7b9aa080a3e5d1b1cd8ea4b0598f83bf88cda13f
Parents: fc94085
Author: Alexey Goncharuk <[email protected]>
Authored: Fri Aug 18 11:56:50 2017 +0300
Committer: Alexey Goncharuk <[email protected]>
Committed: Fri Aug 18 11:56:50 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/7b9aa080/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
index c4e8559..2e543c7 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
@@ -3043,7 +3043,7 @@ public class GridCacheProcessor extends 
GridProcessorAdapter {
     private void checkMemoryConfiguration(ClusterNode rmt) throws 
IgniteCheckedException {
         ClusterNode locNode = ctx.discovery().localNode();
 
-        if (locNode.isClient() || locNode.isDaemon() || rmt.isClient() || 
rmt.isDaemon())
+        if (ctx.config().isClientMode() || locNode.isDaemon() || 
rmt.isClient() || rmt.isDaemon())
             return;
 
         MemoryConfiguration memCfg = 
rmt.attribute(IgniteNodeAttributes.ATTR_MEMORY_CONFIG);

Reply via email to