hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r384019 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
Date Tue, 07 Mar 2006 21:22:11 GMT
Author: cutting
Date: Tue Mar  7 13:22:09 2006
New Revision: 384019

URL: http://svn.apache.org/viewcvs?rev=384019&view=rev
Log:
Fix for HADOOP-57.  Permit listing of "/" in dfs.  With help from Mahadev konar.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java?rev=384019&r1=384018&r2=384019&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java Tue Mar
 7 13:22:09 2006
@@ -266,6 +266,9 @@
         path.append(DFSFile.DFS_FILE_SEPARATOR);
         path.append(l.get(i));
       }
+      if (f.isAbsolute() && path.length() == 0) {
+        path.append(DFSFile.DFS_FILE_SEPARATOR);
+      }
       return path.toString();
     }
 



Mime
View raw message