adoroszlai commented on code in PR #6652:
URL: https://github.com/apache/ozone/pull/6652#discussion_r1609984567


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/ChunkBuffer.java:
##########
@@ -143,6 +143,12 @@ default ChunkBuffer put(ByteString b) {
    */
   long writeTo(GatheringByteChannel channel) throws IOException;
 
+  /**
+   * Write all the contents of the buffer from the current position to the 
limit
+   * to {@code channel}.
+   */
+  void writeFully(GatheringByteChannel channel) throws IOException;

Review Comment:
   @duongkame you can pick 
https://github.com/adoroszlai/ozone/commit/daee756ee4d09334ad9b72a5fdf4926027ff2188,
 which implements the suggested change



-- 
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