You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/01/18 11:35:14 UTC

[iotdb] branch Fix_aligned_mem_control created (now 5754244)

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

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


      at 5754244  [IOTDB-2433] Fix aligned timeseries mem control bug

This branch includes the following new commits:

     new 5754244  [IOTDB-2433] Fix aligned timeseries mem control bug

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-2433] Fix aligned timeseries mem control bug

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

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

commit 575424433bd55954270692fe64d4a327ebbcfcda
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Jan 18 19:34:29 2022 +0800

    [IOTDB-2433] Fix aligned timeseries mem control bug
---
 .../apache/iotdb/db/engine/memtable/AlignedWritableMemChunkGroup.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/memtable/AlignedWritableMemChunkGroup.java b/server/src/main/java/org/apache/iotdb/db/engine/memtable/AlignedWritableMemChunkGroup.java
index adcf172..b506021 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/memtable/AlignedWritableMemChunkGroup.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/memtable/AlignedWritableMemChunkGroup.java
@@ -61,6 +61,10 @@ public class AlignedWritableMemChunkGroup implements IWritableMemChunkGroup {
 
   @Override
   public boolean contains(String measurement) {
+    // used for calculate memtable size
+    if ("".equals(measurement)) {
+      return true;
+    }
     return memChunk.containsMeasurement(measurement);
   }