You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xu...@apache.org on 2020/11/23 08:58:59 UTC

[iotdb] branch memtable_sort_in_query updated: test one part

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

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


The following commit(s) were added to refs/heads/memtable_sort_in_query by this push:
     new 8a9fcab  test one part
8a9fcab is described below

commit 8a9fcab2b25ec5ac5fc643b4458db3fbcd6d44d7
Author: 151250176 <15...@smail.nju.edu.cn>
AuthorDate: Mon Nov 23 16:58:32 2020 +0800

    test one part
---
 .../java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java b/server/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java
index 855d567..13add4b 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/memtable/WritableMemChunk.java
@@ -172,9 +172,9 @@ public class WritableMemChunk implements IWritableMemChunk {
   @Override
   public synchronized TVList getSortedTVListForFlush() {
     // check reference count
-    if ((list.getReferenceCount() > 0 && !list.isSorted())) {
-      list = list.clone();
-    }
+    //if ((list.getReferenceCount() > 0 && !list.isSorted())) {
+    list = list.clone();
+    //}
 
     if (!list.isSorted()) {
       list.sort();