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 2023/05/16 06:33:50 UTC
[iotdb] branch master updated: fix only loading one data directory when start iotdb (#9791)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new dd86d1aca2 fix only loading one data directory when start iotdb (#9791)
dd86d1aca2 is described below
commit dd86d1aca25640d00063836883b4129b966ce7ca
Author: Alan Choo <43...@users.noreply.github.com>
AuthorDate: Tue May 16 14:33:44 2023 +0800
fix only loading one data directory when start iotdb (#9791)
---
server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 737c7a5c07..e0bd3c536f 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
@@ -370,7 +370,8 @@ public class IoTDBDescriptor {
conf.setQueryDir(
FilePathUtils.regularizePath(conf.getSystemDir() + IoTDBConstant.QUERY_FOLDER_NAME));
- conf.setDataDirs(properties.getProperty("dn_data_dirs", conf.getDataDirs()[0]).split(","));
+ conf.setDataDirs(
+ properties.getProperty("dn_data_dirs", String.join(",", conf.getDataDirs())).split(","));
conf.setConsensusDir(properties.getProperty("dn_consensus_dir", conf.getConsensusDir()));