ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [35/40] incubator-ignite git commit: # Revert changes with projections.
Date Wed, 15 Apr 2015 14:12:10 GMT
# Revert changes with projections.


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

Branch: refs/heads/ignite-743
Commit: c8ca4e31beba720db0c14b688a99dfce00b3b434
Parents: 4fe2a9a
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Apr 15 16:43:00 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Apr 15 16:43:00 2015 +0700

----------------------------------------------------------------------
 .../org/apache/ignite/internal/visor/query/VisorQueryTask.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c8ca4e31/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryTask.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryTask.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryTask.java
index b320842..6683205 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryTask.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/query/VisorQueryTask.java
@@ -44,7 +44,9 @@ public class VisorQueryTask extends VisorOneNodeTask<VisorQueryArg, IgniteBiTupl
         ClusterNode node;
 
         if (taskArg.localCacheNodeId() == null) {
-            ClusterGroup prj = ignite.cluster().forDataNodes(cacheName);
+            ClusterGroup prj = (ignite.cluster().localNode().isDaemon())
+                ? ignite.cluster().forRemotes()
+                : ignite.cluster().forDataNodes(cacheName);
 
             if (prj.nodes().isEmpty())
                 throw new IgniteException("No data nodes for cache: " + escapeName(cacheName));


Mime
View raw message