You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/10/10 05:45:44 UTC

[GitHub] [incubator-iotdb] Genius-pig commented on a change in pull request #409: [IOTDB-165][TsFile] Delete a current version and add a number version and an exception.

Genius-pig commented on a change in pull request #409: [IOTDB-165][TsFile] Delete a current version and add a number version and an exception.
URL: https://github.com/apache/incubator-iotdb/pull/409#discussion_r333338511
 
 

 ##########
 File path: tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
 ##########
 @@ -167,8 +167,8 @@ public void loadMetadataSize() throws IOException {
     fileMetadataSize = ReadWriteIOUtils.readInt(metadataSize);
     fileMetadataPos =
         tsFileInput.size() - TSFileConfig.MAGIC_STRING.length() - Integer.BYTES - fileMetadataSize;
-    // skip the magic header
-    tsFileInput.position(TSFileConfig.MAGIC_STRING.length());
+    // skip the magic header and version number
+    tsFileInput.position(TSFileConfig.MAGIC_STRING.length() + TSFileConfig.VERSION_NUMBER.length());
 
 Review comment:
   @jixuan1989 do you have some suggestions about that?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services