1
0
Преглед на файлове

HADOOP-1435. Fix globbing code to no longer use the empty string to indicate the default directory, per HADOOP-1386. Contributed by Hairong.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@541754 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting преди 18 години
родител
ревизия
07b83aa58a
променени са 2 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/fs/FileSystem.java

+ 4 - 0
CHANGES.txt

@@ -491,6 +491,10 @@ Branch 0.13 (unreleased changes)
 126. HADOOP-1427.  Fix a typo that caused GzipCodec to incorrectly use
 126. HADOOP-1427.  Fix a typo that caused GzipCodec to incorrectly use
      a very small input buffer.  (Espen Amble Kolstad via cutting)
      a very small input buffer.  (Espen Amble Kolstad via cutting)
 
 
+127. HADOOP-1435.  Fix globbing code to no longer use the empty string
+     to indicate the default directory, per HADOOP-1386.
+     (Hairong Kuang via cutting)
+
 
 
 Release 0.12.3 - 2007-04-06
 Release 0.12.3 - 2007-04-06
 
 

+ 1 - 1
src/java/org/apache/hadoop/fs/FileSystem.java

@@ -558,7 +558,7 @@ public abstract class FileSystem extends Configured {
       parents[0] = new Path(Path.SEPARATOR);
       parents[0] = new Path(Path.SEPARATOR);
       level = 1;
       level = 1;
     } else {
     } else {
-      parents[0] = new Path("");
+      parents[0] = new Path(Path.CUR_DIR);
     }
     }
       
       
     Path[] results = globPathsLevel(parents, components, level, filter);
     Path[] results = globPathsLevel(parents, components, level, filter);