Explorar el Código

HDFS-10945. Fix the Findbugwaring FSNamesystem#renameTo() in branch-2. Contributed by Brahma Reddy Battula.

Kihwal Lee hace 8 años
padre
commit
84b20d1c18

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

@@ -2705,8 +2705,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
     if (success) {
       getEditLog().logSync();
     }
-    logAuditEvent(success, "rename", src, dst,
-        ret == null ? null : ret.auditStat);
+    logAuditEvent(success, "rename", src, dst, ret.auditStat);
     return success;
   }