HDFS-6738. Remove unnecessary getEncryptionZoneForPath call in EZManager#createEncryptionZone. (clamb)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/fs-encryption@1612849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Charles Lamb 2014-07-23 15:23:03 +00:00
parent 687ce1a5fc
commit 512b756973
2 changed files with 3 additions and 1 deletions

View File

@ -56,6 +56,9 @@ fs-encryption (Unreleased)
HDFS-6720. Remove KeyProvider in EncryptionZoneManager. (wang)
HDFS-6738. Remove unnecessary getEncryptionZoneForPath call in
EZManager#createEncryptionZone. (clamb)
OPTIMIZATIONS
BUG FIXES

View File

@ -227,7 +227,6 @@ public class EncryptionZoneManager {
// updating the xattr will call addEncryptionZone,
// done this way to handle edit log loading
dir.unprotectedSetXAttrs(src, xattrs, EnumSet.of(XAttrSetFlag.CREATE));
ezi = getEncryptionZoneForPath(srcIIP);
return ezXAttr;
}