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/19 08:54:19 UTC

[incubator-iotdb] branch rel/0.9 updated: remove unnecessary code in upgradetool

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 1493ebd  remove unnecessary code in upgradetool
1493ebd is described below

commit 1493ebd64bf329191b365dbdce4de646651a132a
Author: qiaojialin <64...@qq.com>
AuthorDate: Tue Nov 19 16:54:02 2019 +0800

    remove unnecessary code in upgradetool
---
 .../iotdb/tsfile/tool/upgrade/TsfileUpgradeToolV0_8_0.java   | 12 ------------
 1 file changed, 12 deletions(-)

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 a9de43a..1d7d7de 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
@@ -453,18 +453,6 @@ public class TsfileUpgradeToolV0_8_0 implements AutoCloseable {
                     pageList.set(j, rewrite(pageList.get(j), tsDataType, compressionType,
                         pageHeaderList.get(j)));
                   }
-                  switch (compressionType) {
-                    case UNCOMPRESSED:
-                      break;
-                    case SNAPPY:
-                      SnappyUnCompressor snappyUnCompressor = new SnappyUnCompressor();
-                      pageHeaderList.get(j).setUncompressedSize(
-                          snappyUnCompressor.uncompress(pageList.get(j).array()).length);
-                      pageHeaderList.get(j).setCompressedSize(pageList.get(j).array().length);
-                      break;
-                    default:
-                      throw new CompressionTypeNotSupportedException(compressionType.toString());
-                  }
                   chunkBuffer
                       .writePageHeaderAndDataIntoBuff(pageList.get(j), pageHeaderList.get(j));
                 }