cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject git commit: remove intialCapacity from rowcache patch by Vijay; reviewed by xedin for CASSANDRA-4141
Date Thu, 12 Apr 2012 15:37:33 GMT
Updated Branches:
  refs/heads/cassandra-1.1 8909e1a92 -> 33cdcaf73


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/33cdcaf7
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/33cdcaf7
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/33cdcaf7

Branch: refs/heads/cassandra-1.1
Commit: 33cdcaf73463c351ada6e64dcd158a4823bdb902
Parents: 8909e1a
Author: Vijay Parthasarathy <vijay2win@gmail.com>
Authored: Thu Apr 12 08:36:22 2012 -0700
Committer: Vijay Parthasarathy <vijay2win@gmail.com>
Committed: Thu Apr 12 08:36:22 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/33cdcaf7/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/33cdcaf7/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)


Mime
View raw message