ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [1/2] ignite git commit: IGNITE-3443 WIP.
Date Thu, 01 Sep 2016 11:21:12 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-3443 fc0917b53 -> aebeffeaf


IGNITE-3443 WIP.


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

Branch: refs/heads/ignite-3443
Commit: 0c5e84f1e5a1112c7078835ba2abe2e27c194ed7
Parents: fc0917b
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Wed Aug 31 14:22:34 2016 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Wed Aug 31 15:11:21 2016 +0700

----------------------------------------------------------------------
 .../processors/cache/query/GridCacheQueryAdapter.java     | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0c5e84f1/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryAdapter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryAdapter.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryAdapter.java
index cbfd1ef..487ec35 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryAdapter.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/query/GridCacheQueryAdapter.java
@@ -152,7 +152,7 @@ public class GridCacheQueryAdapter<T> implements CacheQuery<T>
{
 
         log = cctx.logger(getClass());
 
-        metrics = new GridCacheQueryMetricsAdapter();
+        metrics = new GridCacheQueryMetricsAdapter(cctx.config().getQueryMetricsHistorySize());
 
         this.incMeta = false;
         this.clsName = null;
@@ -192,9 +192,7 @@ public class GridCacheQueryAdapter<T> implements CacheQuery<T>
{
 
         log = cctx.logger(getClass());
 
-        int histSize = cctx.config().getQueryMetricsHistorySize();
-
-        metrics = new GridCacheQueryMetricsAdapter(histSize);
+        metrics = new GridCacheQueryMetricsAdapter(cctx.config().getQueryMetricsHistorySize());
     }
 
     /**
@@ -465,9 +463,7 @@ public class GridCacheQueryAdapter<T> implements CacheQuery<T>
{
 
     /** {@inheritDoc} */
     @Override public void resetMetrics() {
-        int histSize = cctx.config().getQueryMetricsHistorySize();
-
-        metrics = new GridCacheQueryMetricsAdapter(histSize);
+        metrics = new GridCacheQueryMetricsAdapter(cctx.config().getQueryMetricsHistorySize());
     }
 
     /**


Mime
View raw message