remove intialCapacity from rowcache patch by Vijay; reviewed by xedin for CASSANDRA-4141
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2eaea5be Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2eaea5be Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2eaea5be Branch: refs/heads/trunk Commit: 2eaea5be96461b1d9e405d26229b9803a96d3abf Parents: cbbf549 Author: Vijay Parthasarathy <vijay2...@gmail.com> Authored: Thu Apr 12 08:36:22 2012 -0700 Committer: Vijay Parthasarathy <vijay2...@gmail.com> Committed: Thu Apr 12 08:38:04 2012 -0700 ---------------------------------------------------------------------- .../cassandra/cache/ConcurrentLinkedHashCache.java | 1 - .../apache/cassandra/cache/SerializingCache.java | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/2eaea5be/src/java/org/apache/cassandra/cache/ConcurrentLinkedHashCache.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/cache/ConcurrentLinkedHashCache.java b/src/java/org/apache/cassandra/cache/ConcurrentLinkedHashCache.java index a1cf4ea..ad651eb 100644 --- a/src/java/org/apache/cassandra/cache/ConcurrentLinkedHashCache.java +++ b/src/java/org/apache/cassandra/cache/ConcurrentLinkedHashCache.java @@ -69,7 +69,6 @@ public class ConcurrentLinkedHashCache<K, V> implements ICache<K, V> { ConcurrentLinkedHashMap<K, V> map = new ConcurrentLinkedHashMap.Builder<K, V>() .weigher(weigher) - .initialCapacity(0) .maximumWeightedCapacity(weightedCapacity) .concurrencyLevel(DEFAULT_CONCURENCY_LEVEL) .build(); http://git-wip-us.apache.org/repos/asf/cassandra/blob/2eaea5be/src/java/org/apache/cassandra/cache/SerializingCache.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/cache/SerializingCache.java b/src/java/org/apache/cassandra/cache/SerializingCache.java index 275130c..08fad20 100644 --- a/src/java/org/apache/cassandra/cache/SerializingCache.java +++ b/src/java/org/apache/cassandra/cache/SerializingCache.java @@ -65,7 +65,6 @@ public class SerializingCache<K, V> implements ICache<K, V> .weigher(useMemoryWeigher ? createMemoryWeigher() : Weighers.<FreeableMemory>singleton()) - .initialCapacity(capacity) .maximumWeightedCapacity(capacity) .concurrencyLevel(DEFAULT_CONCURENCY_LEVEL) .listener(listener)