Merge branch 'cassandra-1.2.0' of https://git-wip-us.apache.org/repos/asf/cassandra into cassandra-1.2.0

This commit is contained in:
Sylvain Lebresne 2012-11-13 20:11:01 +01:00
commit 228d1cf6eb
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class ConcurrentLinkedHashCache<K, V> implements ICache<K, V>
{
public int weightOf(K key, V value)
{
long size = meter.measure(key) + meter.measure(value);
long size = meter.measureDeep(key) + meter.measureDeep(value);
assert size < Integer.MAX_VALUE : "Serialized size cannot be more than 2GB/Integer.MAX_VALUE";
return (int) size;
}