jixuan1989 commented on a change in pull request #72: [IOTDB-22] Fix Bug in JIRA
URL: https://github.com/apache/incubator-iotdb/pull/72#discussion_r260773269
##########
File path:
tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
##########
@@ -246,21 +246,21 @@ public Chunk readMemChunk(ChunkMetaData metaData) throws
IOException {
/**
* not thread safe.
*
- * @param type -given tsfile data type
+ * @param type given tsfile data type
*/
public PageHeader readPageHeader(TSDataType type) throws IOException {
- return readPageHeader(type, -1);
+ return PageHeader.deserializeFrom(tsFileInput.wrapAsInputStream(), type);
Review comment:
You should not modify here. because `readPageHeader(TSDataType type, long
position)` still has the bug..
You should modify `readPageHeader(TSDataType type, long position)`, rather
than this method.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services