You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2021/11/16 09:12:39 UTC

[iotdb] branch rel/0.12 updated: [To rel/0.12] [IOTDB-2020] Fix iotdb-engine.properties doesn't take effect bug

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

qiaojialin pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.12 by this push:
     new 2f6b348  [To rel/0.12] [IOTDB-2020] Fix iotdb-engine.properties doesn't take effect bug
2f6b348 is described below

commit 2f6b34814f2e69ebad315404db5779cf3fbfba99
Author: Jackie Tien <Ja...@foxmail.com>
AuthorDate: Tue Nov 16 17:12:14 2021 +0800

    [To rel/0.12] [IOTDB-2020] Fix iotdb-engine.properties doesn't take effect bug
---
 .../src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 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 db0db19..8df773d 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
@@ -1228,10 +1228,13 @@ public class IoTDBDescriptor {
                   + queryMemoryAllocateProportion);
         }
       }
-
-      conf.setMaxQueryDeduplicatedPathNum(
-          Integer.parseInt(properties.getProperty("max_deduplicated_path_num")));
     }
+
+    conf.setMaxQueryDeduplicatedPathNum(
+        Integer.parseInt(
+            properties.getProperty(
+                "max_deduplicated_path_num",
+                Integer.toString(conf.getMaxQueryDeduplicatedPathNum()))));
   }
 
   @SuppressWarnings("squid:S3518") // "proportionSum" can't be zero