ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject [15/42] incubator-ignite git commit: #IGNITE-86: Change using cache context to ctx.namexx() as a key for map.
Date Mon, 02 Feb 2015 15:58:27 GMT
#IGNITE-86: Change using cache context to ctx.namexx() as a key for map.


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

Branch: refs/heads/ignite-56
Commit: 20424760d6827a26399080d72a0fbf0a9c1239b9
Parents: 09b09b7
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Mon Jan 26 13:01:09 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Mon Jan 26 13:01:09 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheDeploymentManager.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/20424760/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheDeploymentManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheDeploymentManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheDeploymentManager.java
index 2df866d..8729b86 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheDeploymentManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheDeploymentManager.java
@@ -182,7 +182,7 @@ public class GridCacheDeploymentManager<K, V> extends GridCacheSharedManagerAdap
     public void unwind(GridCacheContext ctx) {
         int cnt = 0;
 
-        ConcurrentLinkedQueue<CA> q = undeploys.get(ctx);
+        ConcurrentLinkedQueue<CA> q = undeploys.get(ctx.namexx());
 
         if (q == null)
             return;
@@ -209,9 +209,9 @@ public class GridCacheDeploymentManager<K, V> extends GridCacheSharedManagerAdap
             log.debug("Received onUndeploy() request [ldr=" + ldr + ", cctx=" + cctx + ']');
 
         for (final GridCacheContext<K, V> cacheCtx : cctx.cacheContexts()) {
-            undeploys.putIfAbsent(cacheCtx.namexx(), new ConcurrentLinkedQueue<CA>());
// TODO
+            undeploys.putIfAbsent(cacheCtx.namexx(), new ConcurrentLinkedQueue<CA>());
 
-            undeploys.get(cacheCtx).add(new CA() {
+            undeploys.get(cacheCtx.namexx()).add(new CA() {
                 @Override
                 public void apply() {
                     onUndeploy0(ldr, cacheCtx);


Mime
View raw message