HDFS-4614. FSNamesystem#getContentSummary should use getPermissionChecker helper method. Contributed by Aaron T. Myers.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1458593 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67699c2d18
commit
c92b59fd8d
|
@ -427,6 +427,9 @@ Release 2.0.5-beta - UNRELEASED
|
||||||
HDFS-4596. Shutting down namenode during checkpointing can lead to md5sum
|
HDFS-4596. Shutting down namenode during checkpointing can lead to md5sum
|
||||||
error. (Andrew Wang via atm)
|
error. (Andrew Wang via atm)
|
||||||
|
|
||||||
|
HDFS-4614. FSNamesystem#getContentSummary should use getPermissionChecker
|
||||||
|
helper method. (atm)
|
||||||
|
|
||||||
Release 2.0.4-alpha - UNRELEASED
|
Release 2.0.4-alpha - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -3054,8 +3054,7 @@ public class FSNamesystem implements Namesystem, FSClusterStats,
|
||||||
|
|
||||||
ContentSummary getContentSummary(String src) throws AccessControlException,
|
ContentSummary getContentSummary(String src) throws AccessControlException,
|
||||||
FileNotFoundException, UnresolvedLinkException, StandbyException {
|
FileNotFoundException, UnresolvedLinkException, StandbyException {
|
||||||
FSPermissionChecker pc = new FSPermissionChecker(fsOwnerShortUserName,
|
FSPermissionChecker pc = getPermissionChecker();
|
||||||
supergroup);
|
|
||||||
checkOperation(OperationCategory.READ);
|
checkOperation(OperationCategory.READ);
|
||||||
readLock();
|
readLock();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue