ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [48/50] [abbrv] incubator-ignite git commit: #Tests: fix IgniteCacheIterator tests.
Date Wed, 28 Jan 2015 13:01:21 GMT
#Tests: fix IgniteCacheIterator tests.


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

Branch: refs/heads/ignite-132
Commit: 3a8b1baaeeda47660078991d8bed05b215581f9e
Parents: 97ad267
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Jan 28 14:54:28 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Jan 28 14:54:28 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/query/GridCacheQueryManager.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/3a8b1baa/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryManager.java
index c3e9b09..17ca50c 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryManager.java
@@ -757,7 +757,8 @@ public abstract class GridCacheQueryManager<K, V> extends GridCacheManagerAdapte
         GridIterator<IgniteBiTuple<K, V>> heapIt = new GridIteratorAdapter<IgniteBiTuple<K,
V>>() {
             private IgniteBiTuple<K, V> next;
 
-            private Iterator<K> iter = prj.keySet().iterator();
+            private Iterator<K> iter = qry.includeBackups() || cctx.isReplicated()
?
+                prj.keySet().iterator() : prj.primaryKeySet().iterator();
 
             {
                 advance();


Mime
View raw message