You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2021/03/25 07:58:33 UTC

[iotdb] branch PR1257 created (now 65948f2)

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

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


      at 65948f2  [IOTDB-1257] Fix reset logic error for function call of resizeIfNecessary

This branch includes the following new commits:

     new 65948f2  [IOTDB-1257] Fix reset logic error for function call of resizeIfNecessary

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: [IOTDB-1257] Fix reset logic error for function call of resizeIfNecessary

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

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

commit 65948f227766a530c6fe30910a6da48b36766491
Author: Jincheng Sun <su...@gmail.com>
AuthorDate: Thu Mar 25 15:56:50 2021 +0800

    [IOTDB-1257] Fix reset logic error for function call of resizeIfNecessary
---
 .../src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java   | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java b/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java
index 11b089c..a7e8398 100644
--- a/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java
+++ b/service-rpc/src/main/java/org/apache/iotdb/rpc/TElasticFramedTransport.java
@@ -125,10 +125,6 @@ public class TElasticFramedTransport extends TTransport {
               + RpcUtils.FRAME_HARD_MAX_LENGTH
               + ")!");
     }
-
-    if (size < softMaxLength) {
-      readBuffer.resizeIfNecessary(softMaxLength);
-    }
     readBuffer.fill(underlying, size);
   }