# 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 <akuznet...@gridgain.com>
Authored: Wed Apr 15 16:43:00 2015 +0700
Committer: AKuznetsov <akuznet...@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));

Reply via email to