HDFS-16530. setReplication debug log creates a new string even if debug is disabled (#4142)
This commit is contained in:
parent
966b773a7c
commit
bbfe3500cf
|
@ -415,7 +415,7 @@ public class FSDirAttrOp {
|
|||
bm.setReplication(oldBR, targetReplication, b);
|
||||
}
|
||||
|
||||
if (oldBR != -1) {
|
||||
if (oldBR != -1 && FSDirectory.LOG.isDebugEnabled()) {
|
||||
if (oldBR > targetReplication) {
|
||||
FSDirectory.LOG.debug("Decreasing replication from {} to {} for {}",
|
||||
oldBR, targetReplication, iip.getPath());
|
||||
|
|
Loading…
Reference in New Issue