ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [11/13] ignite git commit: IGNITE-2263: Removed "lose" from GridDhtPartitionsExchangeFuture.
Date Sat, 02 Jan 2016 09:21:50 GMT
IGNITE-2263: Removed "lose" from GridDhtPartitionsExchangeFuture.


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

Branch: refs/heads/ignite-2263
Commit: 19885483f4be4a04568e0ce60f93b4cb9f5aa851
Parents: c59643c
Author: thatcoach <ppozerov@list.ru>
Authored: Sat Jan 2 12:15:55 2016 +0300
Committer: thatcoach <ppozerov@list.ru>
Committed: Sat Jan 2 12:15:55 2016 +0300

----------------------------------------------------------------------
 .../dht/preloader/GridDhtPartitionsExchangeFuture.java    | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/19885483/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java
index 2f7ee7f..66bbdc5 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java
@@ -1635,8 +1635,16 @@ public class GridDhtPartitionsExchangeFuture extends GridFutureAdapter<AffinityT
     Collection<UUID> remaining() {
         if (rmtIds == null)
             return Collections.emptyList();
+        else {
+            ArrayList<UUID> res = new ArrayList<>(rmtIds);
+
+            for (UUID rmtId : rmtIds) {
+                if (!rcvdIds.contains(rmtId))
+                    res.add(rmtId);
+            }
 
-        return F.lose(rmtIds, true, rcvdIds);
+            return res;
+        }
     }
 
     /** {@inheritDoc} */


Mime
View raw message