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

This commit is contained in:
Kihwal Lee 2016-10-03 10:48:14 -05:00
parent 2ee47f02cf
commit ebfbce3b5f
1 changed files with 1 additions and 2 deletions

View File

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