ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [01/16] ignite git commit: Fixed IGNITE-6838. Restore EvictionPolicy 'maxSize' field default value.
Date Wed, 29 Nov 2017 16:11:44 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-7016 60e3680f7 -> 7a0b03a2f


Fixed IGNITE-6838.
Restore EvictionPolicy 'maxSize' field default value.


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

Branch: refs/heads/ignite-7016
Commit: d5d2d32226b112a6fbf8f3579605563b8108ffd4
Parents: a3b044f
Author: sboikov <sboikov@gridgain.com>
Authored: Mon Jan 9 11:42:39 2017 +0300
Committer: Andrey V. Mashenkov <andrey.mashenkov@gmail.com>
Committed: Mon Nov 27 11:23:29 2017 +0300

----------------------------------------------------------------------
 .../ignite/cache/eviction/AbstractEvictionPolicyFactory.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d5d2d322/modules/core/src/main/java/org/apache/ignite/cache/eviction/AbstractEvictionPolicyFactory.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/eviction/AbstractEvictionPolicyFactory.java
b/modules/core/src/main/java/org/apache/ignite/cache/eviction/AbstractEvictionPolicyFactory.java
index 012c7ee..aa7dea9 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/eviction/AbstractEvictionPolicyFactory.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/eviction/AbstractEvictionPolicyFactory.java
@@ -20,12 +20,14 @@ package org.apache.ignite.cache.eviction;
 import javax.cache.configuration.Factory;
 import org.apache.ignite.internal.util.typedef.internal.A;
 
+import static org.apache.ignite.configuration.CacheConfiguration.DFLT_CACHE_SIZE;
+
 /**
  * Common functionality implementation for eviction policies factories.
  */
 public abstract class AbstractEvictionPolicyFactory<T> implements Factory<T>
{
     /** */
-    private int maxSize;
+    private int maxSize = DFLT_CACHE_SIZE;
 
     /** */
     private int batchSize = 1;


Mime
View raw message