You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by li...@apache.org on 2019/06/14 12:19:51 UTC

[incubator-iotdb] branch add_log_for_memTableWrite updated: try change to Object[]

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

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


The following commit(s) were added to refs/heads/add_log_for_memTableWrite by this push:
     new 2a1c413  try change to Object[]
2a1c413 is described below

commit 2a1c4134a6fa403d823bc7963f6c8fd704fbc535
Author: liuruiyiyang <24...@qq.com>
AuthorDate: Fri Jun 14 20:19:36 2019 +0800

    try change to Object[]
---
 iotdb/src/main/java/org/apache/iotdb/db/utils/PrimitiveArrayList.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iotdb/src/main/java/org/apache/iotdb/db/utils/PrimitiveArrayList.java b/iotdb/src/main/java/org/apache/iotdb/db/utils/PrimitiveArrayList.java
index 0942dd8..f884d77 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/utils/PrimitiveArrayList.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/utils/PrimitiveArrayList.java
@@ -96,7 +96,8 @@ public class PrimitiveArrayList {
     timestamps.get(currentIndex)[currentArrayIndex] = timestamp;
     MemTableWriteTimeCost.getInstance().measure(MemTableWriteTimeCostType.PUT_TIMESTAMP_2, start);
     start = System.currentTimeMillis();
-    Array.set(values.get(currentIndex), currentArrayIndex, value);
+    //Array.set(values.get(currentIndex), currentArrayIndex, value);
+    ((Object[])values.get(currentIndex))[currentArrayIndex] = value;
     length++;
     MemTableWriteTimeCost.getInstance().measure(MemTableWriteTimeCostType.PUT_TIMESTAMP_3, start);
   }