This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f507c9bb1 HDDS-10269. Remove duplicate addCacheEntry in 
OMDirectoryCreateRequest#getAllParentInfo (#6144)
6f507c9bb1 is described below

commit 6f507c9bb1a66e667006f8609a3e900950fedd20
Author: Ivan Andika <[email protected]>
AuthorDate: Fri Feb 2 03:15:11 2024 +0800

    HDDS-10269. Remove duplicate addCacheEntry in 
OMDirectoryCreateRequest#getAllParentInfo (#6144)
---
 .../hadoop/ozone/om/request/file/OMDirectoryCreateRequest.java       | 5 -----
 1 file changed, 5 deletions(-)

diff --git 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMDirectoryCreateRequest.java
 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMDirectoryCreateRequest.java
index 1c636aab96..f24dee8ae6 100644
--- 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMDirectoryCreateRequest.java
+++ 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMDirectoryCreateRequest.java
@@ -264,7 +264,6 @@ public class OMDirectoryCreateRequest extends OMKeyRequest {
       KeyArgs keyArgs, List<String> missingParents, OmBucketInfo bucketInfo,
       OMFileRequest.OMPathInfo omPathInfo, long trxnLogIndex)
       throws IOException {
-    OMMetadataManager omMetadataManager = ozoneManager.getMetadataManager();
     List<OmKeyInfo> missingParentInfos = new ArrayList<>();
 
     // The base id is left shifted by 8 bits for creating space to
@@ -297,10 +296,6 @@ public class OMDirectoryCreateRequest extends OMKeyRequest 
{
       objectCount++;
 
       missingParentInfos.add(parentKeyInfo);
-      omMetadataManager.getKeyTable(BucketLayout.DEFAULT).addCacheEntry(
-          omMetadataManager.getOzoneKey(
-              volumeName, bucketName, parentKeyInfo.getKeyName()),
-          parentKeyInfo, trxnLogIndex);
     }
 
     return missingParentInfos;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to