cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject [05/15] cassandra git commit: CASSANDRA-11644 - commit to 2.1/2.2/3.0 branches
Date Fri, 13 May 2016 16:39:04 GMT
CASSANDRA-11644 - commit to 2.1/2.2/3.0 branches


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

Branch: refs/heads/cassandra-3.7
Commit: fccded58a6f2ea03dd501c3889e0aa14b6571e16
Parents: 11d4e73
Author: jasonstack <zhaoyangsingapore@gmail.com>
Authored: Tue Apr 26 00:07:29 2016 +0800
Committer: Josh McKenzie <jmckenzie@apache.org>
Committed: Fri May 13 12:36:54 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/fccded58/src/java/org/apache/cassandra/service/GCInspector.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/GCInspector.java b/src/java/org/apache/cassandra/service/GCInspector.java
index cf17a34..2d3d4f3 100644
--- a/src/java/org/apache/cassandra/service/GCInspector.java
+++ b/src/java/org/apache/cassandra/service/GCInspector.java
@@ -48,7 +48,7 @@ public class GCInspector implements NotificationListener, GCInspectorMXBean
     private static final Logger logger = LoggerFactory.getLogger(GCInspector.class);
     final static long MIN_LOG_DURATION = 200;
     final static long GC_WARN_THRESHOLD_IN_MS = DatabaseDescriptor.getGCWarnThreshold();
-    final static long STAT_THRESHOLD = Math.min(GC_WARN_THRESHOLD_IN_MS != 0 ? GC_WARN_THRESHOLD_IN_MS
: MIN_LOG_DURATION, MIN_LOG_DURATION);
+    final static long STAT_THRESHOLD = GC_WARN_THRESHOLD_IN_MS != 0 ? GC_WARN_THRESHOLD_IN_MS
: MIN_LOG_DURATION;
 
     static final class State
     {


Mime
View raw message