From ebfbce3b5fd23bcacba3838b6c4e6923393bc156 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Mon, 3 Oct 2016 10:48:14 -0500 Subject: [PATCH] HDFS-10945. Fix the Findbugwaring FSNamesystem#renameTo() in branch-2. Contributed by Brahma Reddy Battula. --- .../org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java index 7feba2bd11c..54c862932b6 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java @@ -2697,8 +2697,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; }