HDFS-13598. Reduce unnecessary byte-to-string transform operation in INodesInPath#toString. Contributed by Gabor Bota.

This commit is contained in:
Yiqun Lin 2018-05-24 10:57:35 +08:00
parent d996479954
commit 7a87add4ea

View File

@ -484,7 +484,7 @@ private String toString(boolean vaildateObject) {
}
final StringBuilder b = new StringBuilder(getClass().getSimpleName())
.append(": path = ").append(DFSUtil.byteArray2PathString(path))
.append(": path = ").append(getPath())
.append("\n inodes = ");
if (inodes == null) {
b.append("null");