Pārlūkot izejas kodu

Merge -r 757447:757448 to move the change of HADOOP-5549 from main to branch 0.20.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20@757452 13f79535-47bb-0310-9956-ffa450edef68
Hairong Kuang 16 gadi atpakaļ
vecāks
revīzija
b355efa90b

+ 3 - 0
CHANGES.txt

@@ -846,6 +846,9 @@ Release 0.19.2 - Unreleased
     HADOOP-5522. Documents the setup/cleanup tasks in the mapred tutorial.
     (Amareshwari Sriramadasu via ddas)
 
+    HADOOP-5549. ReplicationMonitor should schedule both replication and
+    deletion work in one iteration. (hairong)
+
 Release 0.19.1 - 2009-02-23 
 
   IMPROVEMENTS

+ 1 - 2
src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

@@ -2336,8 +2336,7 @@ public class FSNamesystem implements FSConstants, FSNamesystemMBean {
       corruptReplicaBlocksCount = corruptReplicas.size();
     }
     
-    if(workFound == 0)
-      workFound = computeInvalidateWork(nodesToProcess);
+    workFound += computeInvalidateWork(nodesToProcess);
     return workFound;
   }