ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [03/27] incubator-ignite git commit: # IGNITE-54-55 Remove unused variable.
Date Fri, 06 Feb 2015 11:54:53 GMT
# IGNITE-54-55 Remove unused variable.


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

Branch: refs/heads/ignite-111
Commit: c0571b899651f53edb54866d6f0944e0fedcaecc
Parents: e5b41cc
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Thu Feb 5 17:06:33 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Thu Feb 5 17:06:33 2015 +0300

----------------------------------------------------------------------
 .../cache/distributed/GridDistributedCacheAdapter.java       | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c0571b89/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedCacheAdapter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedCacheAdapter.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedCacheAdapter.java
index 785d455..71e7157 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedCacheAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedCacheAdapter.java
@@ -207,11 +207,7 @@ public abstract class GridDistributedCacheAdapter<K, V> extends
GridCacheAdapter
          * {@inheritDoc}
          */
         @Override public Object call() throws Exception {
-            final IgniteKernal grid = (IgniteKernal)ignite;
-
-            final GridCache<K,V> cache = grid.cachex(cacheName);
-
-            GridCacheAdapter<K, V> cacheAdapter = grid.context().cache().internalCache(cacheName);
+            GridCacheAdapter<K, V> cacheAdapter = ((IgniteKernal)ignite).context().cache().internalCache(cacheName);
 
             final GridCacheContext<K, V> ctx = cacheAdapter.context();
 
@@ -223,7 +219,7 @@ public abstract class GridDistributedCacheAdapter<K, V> extends
GridCacheAdapter
 
             GridDhtCacheAdapter<K, V> dht = (GridDhtCacheAdapter<K, V>)cacheAdapter;
 
-            IgniteDataLoader<K, V> dataLdr = grid.dataLoader(cacheName);
+            IgniteDataLoader<K, V> dataLdr = ignite.dataLoader(cacheName);
 
             for (GridDhtLocalPartition<K, V> locPart : dht.topology().currentLocalPartitions())
{
                 if (!locPart.isEmpty() && locPart.primary(topVer)) {


Mime
View raw message