hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077232 - /hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/FsShell.java
Date Fri, 04 Mar 2011 03:54:19 GMT
Author: omalley
Date: Fri Mar  4 03:54:19 2011
New Revision: 1077232

URL: http://svn.apache.org/viewvc?rev=1077232&view=rev
Log:
commit e5b6eb9a8c98e4f5e103572239e537310d810fd7
Author: Hairong Kuang <hairong@ucdev21.inktomisearch.com>
Date:   Fri Feb 26 22:44:30 2010 +0000

    HADOOP:6569 from http://issues.apache.org/jira/secure/attachment/12437260/optimizeCat-yahoo.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    HADOOP-6569. FsShell#cat should avoid calling unnecessary getFileStatus
    +    before opening a file to read. (hairong)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/FsShell.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/FsShell.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/FsShell.java?rev=1077232&r1=1077231&r2=1077232&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/FsShell.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/fs/FsShell.java
Fri Mar  4 03:54:19 2011
@@ -346,9 +346,6 @@ public class FsShell extends Configured 
     new DelayedExceptionThrowing() {
       @Override
       void process(Path p, FileSystem srcFs) throws IOException {
-        if (srcFs.getFileStatus(p).isDir()) {
-          throw new IOException("Source must be a file.");
-        }
         printToStdout(srcFs.open(p));
       }
     }.globAndProcess(srcPattern, getSrcFileSystem(srcPattern, verifyChecksum));



Mime
View raw message