mirror of https://github.com/apache/cassandra
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:
commit
228d1cf6eb
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue