You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2013/05/07 22:30:51 UTC
git commit: tweak assert to match what it says it does
Updated Branches:
refs/heads/trunk a9bd531bc -> 35be1cc5a
tweak assert to match what it says it does
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/35be1cc5
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/35be1cc5
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/35be1cc5
Branch: refs/heads/trunk
Commit: 35be1cc5a2c135025904f462ddb17c8f27032128
Parents: a9bd531
Author: Jonathan Ellis <jb...@apache.org>
Authored: Tue May 7 15:30:47 2013 -0500
Committer: Jonathan Ellis <jb...@apache.org>
Committed: Tue May 7 15:30:47 2013 -0500
----------------------------------------------------------------------
.../cassandra/cache/ConcurrentLinkedHashCache.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/35be1cc5/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 30cb958..af6549d 100644
--- a/src/java/org/apache/cassandra/cache/ConcurrentLinkedHashCache.java
+++ b/src/java/org/apache/cassandra/cache/ConcurrentLinkedHashCache.java
@@ -55,7 +55,7 @@ public class ConcurrentLinkedHashCache<K extends IMeasurableMemory, V extends IM
public int weightOf(K key, V value)
{
long size = key.memorySize() + value.memorySize();
- assert size < Integer.MAX_VALUE : "Serialized size cannot be more than 2GB/Integer.MAX_VALUE";
+ assert size <= Integer.MAX_VALUE : "Serialized size cannot be more than 2GB/Integer.MAX_VALUE";
return (int) size;
}
});