HDFS-16530. setReplication debug log creates a new string even if debug is disabled (#4142)
(cherry picked from commit bbfe3500cf
)
This commit is contained in:
parent
b2eee14f2e
commit
bd0dbf319a
|
@ -408,7 +408,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