cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1080804 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/Memtable.java
Date Fri, 11 Mar 2011 23:50:38 GMT
Author: jbellis
Date: Fri Mar 11 23:50:38 2011
New Revision: 1080804

URL: http://svn.apache.org/viewvc?rev=1080804&view=rev
Log:
fix memtable thresholds better
patch by Erik Foralsrud; reviewed by jbellis for CASSANDRA-2158

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/Memtable.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/Memtable.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/Memtable.java?rev=1080804&r1=1080803&r2=1080804&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/Memtable.java (original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/Memtable.java Fri Mar
11 23:50:38 2011
@@ -69,7 +69,7 @@ public class Memtable implements Compara
 
         this.cfs = cfs;
         creationTime = System.currentTimeMillis();
-        THRESHOLD = cfs.getMemtableThroughputInMB() * 1024 * 1024;
+        THRESHOLD = cfs.getMemtableThroughputInMB() * 1024L * 1024L;
         THRESHOLD_COUNT = (long) (cfs.getMemtableOperationsInMillions() * 1024 * 1024);
     }
 



Mime
View raw message