HDFS-5061. Merge 1510611 from trunk

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1510626 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2013-08-05 17:49:07 +00:00
parent 3490c9aab7
commit 1df1391cca
2 changed files with 4 additions and 1 deletions

View File

@ -58,6 +58,9 @@ Release 2.1.1-beta - UNRELEASED
HDFS-4513. Clarify in the WebHDFS REST API that all JSON respsonses may HDFS-4513. Clarify in the WebHDFS REST API that all JSON respsonses may
contain additional properties. (szetszwo) contain additional properties. (szetszwo)
HDFS-5061. Make FSNameSystem#auditLoggers an unmodifiable list.
(Arpit Agarwal via suresh)
OPTIMIZATIONS OPTIMIZATIONS
BUG FIXES BUG FIXES

View File

@ -759,7 +759,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
if (auditLoggers.isEmpty()) { if (auditLoggers.isEmpty()) {
auditLoggers.add(new DefaultAuditLogger()); auditLoggers.add(new DefaultAuditLogger());
} }
return auditLoggers; return Collections.unmodifiableList(auditLoggers);
} }
void loadFSImage(StartupOption startOpt, FSImage fsImage, boolean haEnabled) void loadFSImage(StartupOption startOpt, FSImage fsImage, boolean haEnabled)