You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "sunjincheng (Jira)" <ji...@apache.org> on 2021/03/25 07:37:00 UTC

[jira] [Created] (IOTDB-1257) Fix reset logic error for function call of resizeIfNecessary

sunjincheng created IOTDB-1257:
----------------------------------

             Summary: Fix reset logic error for function call of resizeIfNecessary 
                 Key: IOTDB-1257
                 URL: https://issues.apache.org/jira/browse/IOTDB-1257
             Project: Apache IoTDB
          Issue Type: Improvement
          Components: Core/Cluster
            Reporter: sunjincheng
            Assignee: sunjincheng


Fix reset logic error for function call of resizeIfNecessary ,and we do not need call the resizeIfNecessary() before fill() as fill already did the resize logic.
{code}
if (size < softMaxLength) {
      readBuffer.resizeIfNecessary(softMaxLength);
}
readBuffer.fill(underlying, size);
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)