You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2020/07/23 07:36:10 UTC

[incubator-iotdb] branch improve/master_recover updated: fix bug

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

jackietien pushed a commit to branch improve/master_recover
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/improve/master_recover by this push:
     new c7968ed  fix bug
c7968ed is described below

commit c7968edc198fe4103026c3ddeb9fee843325104f
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Thu Jul 23 15:36:12 2020 +0800

    fix bug
---
 .../main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 4639101..a82a957 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
@@ -837,7 +837,7 @@ public class TsFileSequenceReader implements AutoCloseable {
       return TsFileCheckStatus.INCOMPATIBLE_FILE;
     }
     if (!TSFileConfig.MAGIC_STRING.equals(readHeadMagic()) || !TSFileConfig.VERSION_NUMBER
-        .equals(readTailMagic())) {
+        .equals(readVersionNumber())) {
       return TsFileCheckStatus.INCOMPATIBLE_FILE;
     }