spacemonkd commented on code in PR #9886:
URL: https://github.com/apache/ozone/pull/9886#discussion_r3045854478
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmMultipartKeyInfo.java:
##########
@@ -74,6 +84,11 @@ public final class OmMultipartKeyInfo extends WithObjectID
implements CopyObject
*/
private final long parentID;
+ // This stores the schema version of the multipart key.
+ // 0 - Legacy Schema -> Uses the same table to store the multipart part info
+ // 1 - New Schema -> Uses a separate table to store the multipart part info
+ private final byte schemaVersion;
Review Comment:
Used byte here since we know version supports only 0 or 1 so it is more
efficient to use byte rather than overallocate with integer.
Should I change it to int?
--
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]