Browse Source

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
Charles Lamb 10 năm trước cách đây
mục cha
commit
512b756973

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES-fs-encryption.txt

@@ -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

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

@@ -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;
   }