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/1.8 Commit: 97c70da139de19da1921651181bd38a4660175b8 Parents: 6c31cd4 Author: Michael Wall <mjw...@apache.org> Authored: Tue Jun 20 16:19:38 2017 -0400 Committer: Michael Wall <mjw...@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());