You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2021/12/01 11:57:12 UTC

[iotdb] branch readData created (now 49c2153)

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

xiangweiwei pushed a change to branch readData
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 49c2153  fix postion < 0

This branch includes the following new commits:

     new 49c2153  fix postion < 0

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: fix postion < 0

Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 49c215359f8ec4f0bad678553263be42ea17fe0b
Author: Alima777 <wx...@gmail.com>
AuthorDate: Wed Dec 1 19:56:32 2021 +0800

    fix postion < 0
---
 .../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 8e77373..bfb8e31 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
@@ -1050,8 +1050,8 @@ public class TsFileSequenceReader implements AutoCloseable {
                       + "actual read size: %s, position: %s",
                   allocateSize, actualReadSize, position));
         }
+        position += allocateSize;
       }
-      position += allocateSize;
     }
     buffer.flip();
     return buffer;