Gargi-jais11 commented on code in PR #11242:
URL: https://github.com/apache/ozone/pull/11242#discussion_r4033317299


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectAttributesHandler.java:
##########
@@ -137,8 +146,12 @@ Response handleGetRequest(ObjectRequestContext context, 
String keyPath)
         throw ex;
       }
 
+      boolean directoryBucketLayout =
+          context.getBucket().getBucketLayout().isFileSystemOptimized();

Review Comment:
   Good catch — moved the 
context.getBucket().getBucketLayout().isFileSystemOptimized() lookup into the 
ATTR_OBJECT_PARTS branch in buildResponse, so it is  only resolves FSO layout 
when we need it for per-part element



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to