Browse Source

HDFS-4622. Remove redundant synchronized from FSNamesystem#rollEditLog in branch-1. Contributed by Jing Zhao.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1459194 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 years ago
parent
commit
ced36eca0a
2 changed files with 4 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

+ 3 - 0
CHANGES.txt

@@ -25,6 +25,9 @@ Release 1.3.0 - unreleased
     MAPREDUCE-5038. old API CombineFileInputFormat missing fixes that are
     in new API. (sandyr via tucu)
 
+    HDFS-4622. Remove redundant synchronized from 
+    FSNamesystem#rollEditLog in branch-1. (Jing Zhao via suresh)
+
 Release 1.2.0 - unreleased
 
   INCOMPATIBLE CHANGES

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

@@ -5616,7 +5616,7 @@ public class FSNamesystem implements FSConstants, FSNamesystemMBean, FSClusterSt
     return getEditLog().getEditLogSize();
   }
 
-  synchronized CheckpointSignature rollEditLog() throws IOException {
+  CheckpointSignature rollEditLog() throws IOException {
     checkSuperuserPrivilege();
     synchronized (this) {
       if (isInSafeMode()) {