You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by li...@apache.org on 2017/05/17 20:21:17 UTC

hadoop git commit: HADOOP-14427. Avoid reloading of Configuration in ViewFileSystem creation. Contributed by Vinayakumar B

Repository: hadoop
Updated Branches:
  refs/heads/trunk d4aa9e3c6 -> eb7791b47


HADOOP-14427. Avoid reloading of Configuration in ViewFileSystem creation. Contributed by Vinayakumar B


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/eb7791b4
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/eb7791b4
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/eb7791b4

Branch: refs/heads/trunk
Commit: eb7791b4743c593ac7d0f0d08962132723ffe3c6
Parents: d4aa9e3
Author: Mingliang Liu <li...@apache.org>
Authored: Wed May 17 13:12:14 2017 -0700
Committer: Mingliang Liu <li...@apache.org>
Committed: Wed May 17 13:12:14 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/eb7791b4/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
----------------------------------------------------------------------
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 e16da64..8265d89 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
@@ -195,7 +195,7 @@ public class ViewFileSystem extends FileSystem {
         protected
         FileSystem getTargetFileSystem(final INodeDir<FileSystem> dir)
           throws URISyntaxException {
-          return new InternalDirOfViewFs(dir, creationTime, ugi, myUri);
+          return new InternalDirOfViewFs(dir, creationTime, ugi, myUri, config);
         }
 
         @Override
@@ -905,11 +905,11 @@ public class ViewFileSystem extends FileSystem {
     final URI myUri;
     
     public InternalDirOfViewFs(final InodeTree.INodeDir<FileSystem> dir,
-        final long cTime, final UserGroupInformation ugi, URI uri)
-      throws URISyntaxException {
+        final long cTime, final UserGroupInformation ugi, URI uri,
+        Configuration config) throws URISyntaxException {
       myUri = uri;
       try {
-        initialize(myUri, new Configuration());
+        initialize(myUri, config);
       } catch (IOException e) {
         throw new RuntimeException("Cannot occur");
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org