You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2017/05/04 00:07:58 UTC

[44/54] geode git commit: Fix redis failure

Fix redis failure


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

Branch: refs/heads/feature/GEODE-2632-11
Commit: fa9853491aaf1043e7c7b4f99ee2078c0f250c9a
Parents: ba9744c
Author: Kirk Lund <kl...@apache.org>
Authored: Tue May 2 19:24:15 2017 -0700
Committer: Kirk Lund <kl...@apache.org>
Committed: Wed May 3 17:06:23 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/geode/internal/cache/PartitionedRegion.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/fa985349/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
index eebe2c7..4606b78 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java
@@ -6106,7 +6106,9 @@ public class PartitionedRegion extends LocalRegion
     @Override
     public Object[] toArray(Object[] array) {
       List temp = new ArrayList(this.size());
-      temp.addAll(this);
+      for (Iterator iter = this.iterator(); iter.hasNext();) {
+        temp.add(iter.next());
+      }
       if (array == null) {
         return temp.toArray();
       } else {