|
@@ -270,6 +270,8 @@ public class INodesInPath {
|
|
|
}
|
|
|
|
|
|
private final byte[][] path;
|
|
|
+ private final String pathname;
|
|
|
+
|
|
|
/**
|
|
|
* Array with the specified number of INodes resolved for a given path.
|
|
|
*/
|
|
@@ -291,6 +293,7 @@ public class INodesInPath {
|
|
|
Preconditions.checkArgument(inodes != null && path != null);
|
|
|
this.inodes = inodes;
|
|
|
this.path = path;
|
|
|
+ this.pathname = DFSUtil.byteArray2PathString(path);
|
|
|
this.isSnapshot = isSnapshot;
|
|
|
this.snapshotId = snapshotId;
|
|
|
}
|
|
@@ -346,7 +349,7 @@ public class INodesInPath {
|
|
|
|
|
|
/** @return the full path in string form */
|
|
|
public String getPath() {
|
|
|
- return DFSUtil.byteArray2PathString(path);
|
|
|
+ return pathname;
|
|
|
}
|
|
|
|
|
|
public String getParentPath() {
|