cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r1164216 - /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/utils/BloomFilter.java
Date Thu, 01 Sep 2011 19:13:59 GMT
Author: brandonwilliams
Date: Thu Sep  1 19:13:58 2011
New Revision: 1164216

URL: http://svn.apache.org/viewvc?rev=1164216&view=rev
Log:
Add trace check before logging

Modified:
    cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/utils/BloomFilter.java

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/utils/BloomFilter.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/utils/BloomFilter.java?rev=1164216&r1=1164215&r2=1164216&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/utils/BloomFilter.java
(original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/utils/BloomFilter.java
Thu Sep  1 19:13:58 2011
@@ -70,7 +70,8 @@ public class BloomFilter extends Filter
                                       numElements, bucketsPerElement, targetBucketsPerElem));
         }
         BloomCalculations.BloomSpecification spec = BloomCalculations.computeBloomSpec(bucketsPerElement);
-        logger.trace("Creating bloom filter for {} elements and spec {}", numElements, spec);
+        if (logger.isTraceEnabled())
+            logger.trace("Creating bloom filter for {} elements and spec {}", numElements,
spec);
         return new BloomFilter(spec.K, bucketsFor(numElements, spec.bucketsPerElement));
     }
 



Mime
View raw message