hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r390716 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java
Date Sat, 01 Apr 2006 18:17:17 GMT
Author: cutting
Date: Sat Apr  1 10:17:16 2006
New Revision: 390716

URL: http://svn.apache.org/viewcvs?rev=390716&view=rev
Log:
Fix a bug where writing zero-length files would cause things to hang.

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

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java?rev=390716&r1=390715&r2=390716&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DataNode.java Sat Apr  1 10:17:16 2006
@@ -403,7 +403,7 @@
                                 // maybe to network.
                                 //
                                 try {
-                                    boolean anotherChunk = true;
+                                    boolean anotherChunk = len != 0;
                                     byte buf[] = new byte[BUFFER_SIZE];
 
                                     while (anotherChunk) {



Mime
View raw message