You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by su...@apache.org on 2019/10/30 05:55:23 UTC

[incubator-iotdb] branch rel/0.8_sy_test updated: fix bug in restore metadata

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

suyue pushed a commit to branch rel/0.8_sy_test
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/rel/0.8_sy_test by this push:
     new 4c69ee0  fix bug in restore metadata
4c69ee0 is described below

commit 4c69ee03ab1a0fa4e725b2d1b6cd1f240ef56d95
Author: suyue <23...@qq.com>
AuthorDate: Wed Oct 30 13:55:03 2019 +0800

    fix bug in restore metadata
---
 .../src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
index b5a0fd5..82c19b5 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
@@ -573,6 +573,7 @@ public class TsFileSequenceReader implements AutoCloseable {
             currentChunk = new ChunkMetaData(measurementID, dataType, fileOffsetOfChunk,
                 startTimeOfChunk, endTimeOfChunk);
             currentChunk.setNumOfPoints(numOfPoints);
+            currentChunk.setDataSize(header.getDataSize());
             Map<String, ByteBuffer> statisticsMap = new HashMap<>();
             statisticsMap
                 .put(StatisticConstant.MAX_VALUE, ByteBuffer.wrap(chunkStatistics.getMaxBytes()));