shuwenwei commented on code in PR #12960:
URL: https://github.com/apache/iotdb/pull/12960#discussion_r1682095371


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/io/LogWriter.java:
##########
@@ -108,9 +108,6 @@ public double write(ByteBuffer buffer) throws IOException {
       bufferSize = buffer.position();
       buffer.flip();
       compressed = true;
-      size += COMPRESSED_HEADER_SIZE;
-    } else {
-      size += UN_COMPRESSED_HEADER_SIZE;

Review Comment:
   Why doesn’t the size need to be increased in this place?



-- 
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: reviews-unsubscr...@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to