hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r927134 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/HarFileSystem.java
Date Wed, 24 Mar 2010 17:51:38 GMT
Author: mahadev
Date: Wed Mar 24 17:51:38 2010
New Revision: 927134

URL: http://svn.apache.org/viewvc?rev=927134&view=rev
Log:
HADOOP-6645. Re: Bugs on listStatus for HarFileSystem (rodrigo via mahadev)

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/fs/HarFileSystem.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=927134&r1=927133&r2=927134&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Wed Mar 24 17:51:38 2010
@@ -295,6 +295,9 @@ Trunk (unreleased changes)
 
     HADOOP-6645.  Bugs on listStatus for HarFileSystem (rodrigo via mahadev)
 
+    HADOOP-6645. Re: Bugs on listStatus for HarFileSystem (rodrigo via
+    mahadev)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/fs/HarFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/fs/HarFileSystem.java?rev=927134&r1=927133&r2=927134&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/fs/HarFileSystem.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/fs/HarFileSystem.java Wed Mar 24 17:51:38
2010
@@ -409,7 +409,10 @@ public class HarFileSystem extends Filte
       LineReader aLin;
       long read = 0;
       aLin = new LineReader(aIn, getConf());
-      String parentString = parent.getName() + Path.SEPARATOR;
+      String parentString = parent.getName();
+      if (!parentString.endsWith(Path.SEPARATOR)){
+          parentString += Path.SEPARATOR;
+      }
       Path harPath = new Path(parentString);
       int harlen = harPath.depth();
       Text line = new Text();



Mime
View raw message