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 2020/12/03 03:35:04 UTC
[iotdb] branch cluster_add_snappy updated: fix missing initial size
This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch cluster_add_snappy
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/cluster_add_snappy by this push:
new 6fb6226 fix missing initial size
6fb6226 is described below
commit 6fb622667baf461e9a8cba70e989c573d254603f
Author: jt <jt...@163.com>
AuthorDate: Thu Dec 3 11:33:46 2020 +0800
fix missing initial size
---
service-rpc/src/main/java/org/apache/iotdb/rpc/AutoResizingBuffer.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/service-rpc/src/main/java/org/apache/iotdb/rpc/AutoResizingBuffer.java b/service-rpc/src/main/java/org/apache/iotdb/rpc/AutoResizingBuffer.java
index 620b7eb..10243a5 100644
--- a/service-rpc/src/main/java/org/apache/iotdb/rpc/AutoResizingBuffer.java
+++ b/service-rpc/src/main/java/org/apache/iotdb/rpc/AutoResizingBuffer.java
@@ -47,6 +47,7 @@ class AutoResizingBuffer {
public AutoResizingBuffer(int initialCapacity) {
this.array = new byte[initialCapacity];
+ this.initialCapacity = initialCapacity;
}
public void resizeIfNecessary(int size) {