瀏覽代碼

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 年之前
父節點
當前提交
b355efa90b
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 3 0
      CHANGES.txt
  2. 1 2
      src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

+ 3 - 0
CHANGES.txt

@@ -846,6 +846,9 @@ Release 0.19.2 - Unreleased
     HADOOP-5522. Documents the setup/cleanup tasks in the mapred tutorial.
     HADOOP-5522. Documents the setup/cleanup tasks in the mapred tutorial.
     (Amareshwari Sriramadasu via ddas)
     (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 
 Release 0.19.1 - 2009-02-23 
 
 
   IMPROVEMENTS
   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();
       corruptReplicaBlocksCount = corruptReplicas.size();
     }
     }
     
     
-    if(workFound == 0)
-      workFound = computeInvalidateWork(nodesToProcess);
+    workFound += computeInvalidateWork(nodesToProcess);
     return workFound;
     return workFound;
   }
   }