tanvipenumudy commented on code in PR #3477:
URL: https://github.com/apache/ozone/pull/3477#discussion_r888898454
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketCreateRequest.java:
##########
@@ -152,8 +151,12 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager,
OMResponse.Builder omResponse = OmResponseUtil.getOMResponseBuilder(
getOmRequest());
OmBucketInfo omBucketInfo = null;
- if (bucketInfo.getBucketLayout() == null || bucketInfo.getBucketLayout()
- .equals(BucketLayoutProto.LEGACY)) {
+
+ // If the user has set a value, bucketInfo.hasBucketLayout() would be true,
Review Comment:
Thank you for the suggestions, I have incorporated the changes!
--
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]