swamirishi commented on code in PR #8587:
URL: https://github.com/apache/ozone/pull/8587#discussion_r2411552892
##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/util/ProtobufUtils.java:
##########
@@ -46,4 +46,8 @@ public static UUID fromProtobuf(HddsProtos.UUID proto) {
public static int computeRepeatedStringSize(String value) {
return CodedOutputStream.computeStringSizeNoTag(value);
}
+
+ public static int computeLongSizeWithTag(long value) {
+ return CodedOutputStream.computeInt64Size(10, value);
Review Comment:
this was the field number. I have made changes to this function to also take
in tag number as an input
--
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]