From 2f7812f14f04acffd65da596d4169b6176d575fa Mon Sep 17 00:00:00 2001 From: chungen0126 Date: Sat, 14 Dec 2024 09:47:20 +0800 Subject: [PATCH] address comment --- .../apache/hadoop/ozone/om/request/key/OMKeysDeleteRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeysDeleteRequest.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeysDeleteRequest.java index fa4f5c652fc..8178abfed32 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeysDeleteRequest.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeysDeleteRequest.java @@ -174,7 +174,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager, TermIn OzoneFileStatus fileStatus = getOzoneKeyStatus( ozoneManager, omMetadataManager, volumeName, bucketName, keyName); addKeyToAppropriateList(omKeyInfoList, omKeyInfo, dirList, - fileStatus, deleteKeyArgs.getFromS3G()); + fileStatus, deleteKeyArgs.hasFromS3G() && deleteKeyArgs.getFromS3G()); } catch (Exception ex) { deleteStatus = false; LOG.error("Acl check failed for Key: {}", objectKey, ex);