cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r1000136 - /cassandra/trunk/src/java/org/apache/cassandra/config/Config.java
Date Wed, 22 Sep 2010 18:47:57 GMT
Author: brandonwilliams
Date: Wed Sep 22 18:47:57 2010
New Revision: 1000136

URL: http://svn.apache.org/viewvc?rev=1000136&view=rev
Log:
Use double for default memtable_operations_in_millions calculation.  Patch by brandonwilliams,
reviewed by Nick Bailey.

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/config/Config.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/config/Config.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/config/Config.java?rev=1000136&r1=1000135&r2=1000136&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/config/Config.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/config/Config.java Wed Sep 22 18:47:57 2010
@@ -78,7 +78,7 @@ public class Config
     /* Size of the memtable in memory before it is dumped */
     public Integer memtable_throughput_in_mb = (int) (Runtime.getRuntime().maxMemory() /
1048576 / 8);
     /* Number of objects in millions in the memtable before it is dumped */
-    public Double memtable_operations_in_millions = memtable_throughput_in_mb / 64 * 0.3;
+    public Double memtable_operations_in_millions = memtable_throughput_in_mb / 64.0 * 0.3;
     
     /* if the size of columns or super-columns are more than this, indexing will kick in
*/
     public Integer column_index_size_in_kb = 64;



Mime
View raw message