cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [07/16] git commit: fix potential overflow in extimatedKeys
Date Thu, 08 Aug 2013 16:34:00 GMT
fix potential overflow in extimatedKeys


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/23d7bd85
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/23d7bd85
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/23d7bd85

Branch: refs/heads/cassandra-2.0
Commit: 23d7bd85758762dbc2b717af56c4f590702a8b30
Parents: 7d45d2b
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Thu Aug 8 11:15:27 2013 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Thu Aug 8 11:15:27 2013 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/io/sstable/SSTableReader.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/23d7bd85/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
index e9a03c8..412e4c1 100644
--- a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
+++ b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java
@@ -597,7 +597,7 @@ public class SSTableReader extends SSTable
      */
     public long estimatedKeys()
     {
-        return indexSummary.size() * DatabaseDescriptor.getIndexInterval();
+        return ((long) indexSummary.size()) * DatabaseDescriptor.getIndexInterval();
     }
 
     /**


Mime
View raw message