cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [1/2] git commit: use long math for long values
Date Sat, 21 Sep 2013 20:11:00 GMT
Updated Branches:
  refs/heads/trunk 65166aa86 -> fe4606ce1


use long math for long values


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

Branch: refs/heads/trunk
Commit: 7ce28f81f1483a39d02ab9c309e949f021f8f0ed
Parents: 15c738c
Author: Dave Brosius <dbrosius@apache.org>
Authored: Sat Sep 21 16:09:37 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Sat Sep 21 16:09:37 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/FileCacheService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/7ce28f81/src/java/org/apache/cassandra/service/FileCacheService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/FileCacheService.java b/src/java/org/apache/cassandra/service/FileCacheService.java
index 9dd1b15..e6bc3e5 100644
--- a/src/java/org/apache/cassandra/service/FileCacheService.java
+++ b/src/java/org/apache/cassandra/service/FileCacheService.java
@@ -38,7 +38,7 @@ public class FileCacheService
 {
     private static final Logger logger = LoggerFactory.getLogger(FileCacheService.class);
 
-    private static final long MEMORY_USAGE_THRESHOLD = DatabaseDescriptor.getFileCacheSizeInMB()
* 1024 * 1024;
+    private static final long MEMORY_USAGE_THRESHOLD = DatabaseDescriptor.getFileCacheSizeInMB()
* 1024L * 1024L;
     private static final int AFTER_ACCESS_EXPIRATION = 512; // in millis
 
     public static FileCacheService instance = new FileCacheService();


Mime
View raw message