You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2019/11/20 05:22:54 UTC

[incubator-iotdb] branch rel/0.9 updated: fix upgrade bug

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

qiaojialin pushed a commit to branch rel/0.9
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/rel/0.9 by this push:
     new fa5ad8f  fix upgrade bug
fa5ad8f is described below

commit fa5ad8f403a05161bbd1a12e969059f97c6a3854
Author: qiaojialin <64...@qq.com>
AuthorDate: Wed Nov 20 13:22:35 2019 +0800

    fix upgrade bug
---
 .../org/apache/iotdb/tsfile/tool/upgrade/TsfileUpgradeToolV0_8_0.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/tool/upgrade/TsfileUpgradeToolV0_8_0.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/tool/upgrade/TsfileUpgradeToolV0_8_0.java
index 1d7d7de..6c13594 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/tool/upgrade/TsfileUpgradeToolV0_8_0.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/tool/upgrade/TsfileUpgradeToolV0_8_0.java
@@ -512,7 +512,7 @@ public class TsfileUpgradeToolV0_8_0 implements AutoCloseable {
     valueBuffer.position(timeBufferLength);
     valueBuffer.order(ByteOrder.LITTLE_ENDIAN);
 
-    modifiedPage.put(page.get(0));
+    ReadWriteForEncodingUtils.writeUnsignedVarInt(timeBufferLength, modifiedPage);
     modifiedPage.put(timeBuffer);
     modifiedPage.order(ByteOrder.BIG_ENDIAN);
     switch (tsDataType) {