ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [12/14] ignite git commit: IGNITE-3227 IgniteCache: add method to calculate size per partition
Date Mon, 04 Jul 2016 03:46:51 GMT
IGNITE-3227 IgniteCache: add method to calculate size per partition


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

Branch: refs/heads/ignite-3227
Commit: cf712fe24aa3cdba75ee6322dc8007d3403f7271
Parents: 9f4c509
Author: samaitra <saikat.maitra@gmail.com>
Authored: Fri Jul 1 00:24:44 2016 +0530
Committer: samaitra <saikat.maitra@gmail.com>
Committed: Fri Jul 1 00:24:44 2016 +0530

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/cf712fe2/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
index a44b6a3..245009d 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheAdapter.java
@@ -4011,14 +4011,14 @@ public abstract class GridCacheAdapter<K, V> implements IgniteInternalCache<K,
V
                     size += size();
             } else {
                 if (modes.heap) {
-                    GridDhtLocalPartition gridDthLocalPartition = ctx.topology().localPartition(partition,
topVer, false);
+                    GridDhtLocalPartition gridDhtLocalPartition = ctx.topology().localPartition(partition,
topVer, false);
 
-                    if (!(gridDthLocalPartition == null)){
-                        if (modes.primary && gridDthLocalPartition.primary(topVer))
{
-                            size += gridDthLocalPartition.publicSize();
+                    if (!(gridDhtLocalPartition == null)){
+                        if (modes.primary && gridDhtLocalPartition.primary(topVer))
{
+                            size += gridDhtLocalPartition.publicSize();
                         }
-                        else if (modes.backup && gridDthLocalPartition.backup(topVer))
{
-                            size += gridDthLocalPartition.publicSize();
+                        else if (modes.backup && gridDhtLocalPartition.backup(topVer))
{
+                            size += gridDhtLocalPartition.publicSize();
                         }
                     }
                 }


Mime
View raw message