commit | 0d43235d96804f945aa22c119fab239d0c8473da | [log] [tgz] |
---|---|---|
author | Uma Maheswara Rao G <umamahesh@apache.org> | Sun Jun 07 14:33:01 2020 -0700 |
committer | GitHub <noreply@github.com> | Sun Jun 07 14:33:01 2020 -0700 |
tree | 19b91c9b74336fbfb9d1bfe36c3cbb1ebf4e8bd5 | |
parent | a8610c15c498531bf3c011f1b0ace8eddddf61f2 [diff] |
Revert "HDFS-15396. Fix TestViewFileSystemOverloadSchemeHdfsFileSystemContract#testListStatusRootDir. Contributed by Ayush Saxena." This reverts commit a8610c15c498531bf3c011f1b0ace8eddddf61f2.
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java index 2711bff..142785a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
@@ -1202,9 +1202,6 @@ INodeLink<FileSystem> link = (INodeLink<FileSystem>) inode; try { String linkedPath = link.getTargetFileSystem().getUri().getPath(); - if("".equals(linkedPath)) { - linkedPath = "/"; - } FileStatus status = ((ChRootedFileSystem)link.getTargetFileSystem()) .getMyFs().getFileStatus(new Path(linkedPath));