hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r398010 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FileSystem.java
Date Fri, 28 Apr 2006 21:06:11 GMT
Author: cutting
Date: Fri Apr 28 14:06:08 2006
New Revision: 398010

URL: http://svn.apache.org/viewcvs?rev=398010&view=rev
Log:
Fix createNewFile() so that it creates a .crc file, like everything
else does.  This fixes some annoyances in Nutch.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FileSystem.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FileSystem.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FileSystem.java?rev=398010&r1=398009&r2=398010&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FileSystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/fs/FileSystem.java Fri Apr 28 14:06:08
2006
@@ -243,13 +243,8 @@
         if (exists(f)) {
             return false;
         } else {
-            OutputStream out = createRaw(f, false, 
-                                (short)getConf().getInt("dfs.replication", 3));
-            try {
-            } finally {
-              out.close();
-            }
-            return true;
+          create(f,false,getConf().getInt("io.file.buffer.size", 4096)).close();
+          return true;
         }
     }
 



Mime
View raw message