accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mjw...@apache.org
Subject [4/5] accumulo git commit: ACCUMULO-4657 remove isTraceEnabled guard
Date Tue, 20 Jun 2017 20:42:30 GMT
ACCUMULO-4657 remove isTraceEnabled guard

not needed with slf4j.  Closes #270


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

Branch: refs/heads/master
Commit: 97c70da139de19da1921651181bd38a4660175b8
Parents: 6c31cd4
Author: Michael Wall <mjwall@apache.org>
Authored: Tue Jun 20 16:19:38 2017 -0400
Committer: Michael Wall <mjwall@apache.org>
Committed: Tue Jun 20 16:42:03 2017 -0400

----------------------------------------------------------------------
 .../org/apache/accumulo/server/util/MetadataTableUtil.java  | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/97c70da1/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
----------------------------------------------------------------------
diff --git a/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
b/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
index 54ca37c..aac7164 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java
@@ -895,16 +895,11 @@ public class MetadataTableUtil {
         BatchWriter bw = conn.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig()))
{
       mscanner.setRange(new KeyExtent(tableId, null, null).toMetadataRange());
       mscanner.fetchColumnFamily(TabletsSection.BulkFileColumnFamily.NAME);
-      boolean shouldTrace = log.isTraceEnabled();
       byte[] tidAsBytes = Long.toString(tid).getBytes(UTF_8);
       for (Entry<Key,Value> entry : mscanner) {
-        if (shouldTrace) {
-          log.trace("Looking at entry {} with tid {}", entry, tid);
-        }
+        log.trace("Looking at entry {} with tid {}", entry, tid);
         if (Arrays.equals(entry.getValue().get(), tidAsBytes)) {
-          if (shouldTrace) {
-            log.trace("deleting entry {}", entry);
-          }
+          log.trace("deleting entry {}", entry);
           Key key = entry.getKey();
           Mutation m = new Mutation(key.getRow());
           m.putDelete(key.getColumnFamily(), key.getColumnQualifier());


Mime
View raw message