You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2022/11/18 11:32:33 UTC

[iotdb] 03/09: fix a bug

This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch improvedAlign_for_expr
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 93a1f73b0a1568e9391726a4a0a7bf17eefc21e4
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Thu May 26 11:53:26 2022 +0800

    fix a bug
---
 .../main/java/org/apache/iotdb/tsfile/write/chunk/ValueChunkWriter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ValueChunkWriter.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ValueChunkWriter.java
index 7a143c9f95..4ba7cba079 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ValueChunkWriter.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/chunk/ValueChunkWriter.java
@@ -217,7 +217,7 @@ public class ValueChunkWriter {
     // Empty chunk, it may happen if pageBuffer stores empty bits and only chunk header will be
     // flushed.
     if (statistics.getCount() == 0) {
-      return ChunkHeader.getSerializedSize(measurementId, pageBuffer.size());
+      return ChunkHeader.getSerializedSize(measurementId, 0);
     }
 
     // return the serialized size of the chunk header + all pages