You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/01/26 13:19:45 UTC

[iotdb] branch master updated: [IOTDB-1129] Correct `calculateLength` logic according New TsFile Format for 0.12 (#2584)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new bd1a867  [IOTDB-1129] Correct `calculateLength` logic according New TsFile Format for 0.12 (#2584)
bd1a867 is described below

commit bd1a86701ecd332b9b5c9d3ed92b05a4881da24a
Author: Benedict Jin <as...@apache.org>
AuthorDate: Tue Jan 26 21:19:19 2021 +0800

    [IOTDB-1129] Correct `calculateLength` logic according New TsFile Format for 0.12 (#2584)
---
 session/src/main/java/org/apache/iotdb/session/Session.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/session/src/main/java/org/apache/iotdb/session/Session.java b/session/src/main/java/org/apache/iotdb/session/Session.java
index b971540..4b7c889 100644
--- a/session/src/main/java/org/apache/iotdb/session/Session.java
+++ b/session/src/main/java/org/apache/iotdb/session/Session.java
@@ -1119,7 +1119,7 @@ public class Session {
     int res = 0;
     for (int i = 0; i < types.size(); i++) {
       // types
-      res += Short.BYTES;
+      res += Byte.BYTES;
       switch (types.get(i)) {
         case BOOLEAN:
           res += 1;