You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/02/11 03:05:39 UTC

[iotdb] branch IOTDB-2533 created (now 7115d42)

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

jackietien pushed a change to branch IOTDB-2533
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 7115d42  [IOTDB-2533] Fix change max_deduplicated_path_num does not take effect

This branch includes the following new commits:

     new 7115d42  [IOTDB-2533] Fix change max_deduplicated_path_num does not take effect

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-2533] Fix change max_deduplicated_path_num does not take effect

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

jackietien pushed a commit to branch IOTDB-2533
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 7115d42833004963642fe3878d4df56e84535384
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Fri Feb 11 11:04:33 2022 +0800

    [IOTDB-2533] Fix change max_deduplicated_path_num does not take effect
---
 .../java/org/apache/iotdb/db/conf/IoTDBDescriptor.java     | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
index 51f8d7e..520674d 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
@@ -1282,7 +1282,13 @@ public class IoTDBDescriptor {
     logger.info("allocateMemoryForWrite = {}", conf.getAllocateMemoryForWrite());
     logger.info("allocateMemoryForSchema = {}", conf.getAllocateMemoryForSchema());
 
-    if (!conf.isMetaDataCacheEnable()) {
+    conf.setMaxQueryDeduplicatedPathNum(
+        Integer.parseInt(
+            properties.getProperty(
+                "max_deduplicated_path_num",
+                Integer.toString(conf.getMaxQueryDeduplicatedPathNum()))));
+
+    if (conf.isMetaDataCacheEnable()) {
       return;
     }
 
@@ -1313,12 +1319,6 @@ public class IoTDBDescriptor {
         }
       }
     }
-
-    conf.setMaxQueryDeduplicatedPathNum(
-        Integer.parseInt(
-            properties.getProperty(
-                "max_deduplicated_path_num",
-                Integer.toString(conf.getMaxQueryDeduplicatedPathNum()))));
   }
 
   @SuppressWarnings("squid:S3518") // "proportionSum" can't be zero