Browse Source

HDFS-13973. getErasureCodingPolicy should log path in audit event. Contributed by Shweta.

Signed-off-by: Xiao Chen <xiao@apache.org>
Shweta 6 years ago
parent
commit
c0118105b7

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

@@ -7728,7 +7728,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
       return ret;
       return ret;
     } finally {
     } finally {
       readUnlock(operationName);
       readUnlock(operationName);
-      logAuditEvent(success, operationName, null);
+      logAuditEvent(success, operationName, src);
     }
     }
   }
   }