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

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new c1ddcc5751f [opt](config) create custom conf dir if not exists (#29391)
c1ddcc5751f is described below

commit c1ddcc5751f92a32c522aeb86055fe0b23ecbaf9
Author: Mingyu Chen <[email protected]>
AuthorDate: Fri Jan 5 00:14:16 2024 +0800

    [opt](config) create custom conf dir if not exists (#29391)
---
 fe/fe-common/src/main/java/org/apache/doris/common/ConfigBase.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/ConfigBase.java 
b/fe/fe-common/src/main/java/org/apache/doris/common/ConfigBase.java
index 3173f26faa0..2411ff997c7 100644
--- a/fe/fe-common/src/main/java/org/apache/doris/common/ConfigBase.java
+++ b/fe/fe-common/src/main/java/org/apache/doris/common/ConfigBase.java
@@ -391,6 +391,7 @@ public class ConfigBase {
             throws IOException {
         File file = new File(customConfFile);
         if (!file.exists()) {
+            file.getParentFile().mkdirs();
             file.createNewFile();
         } else if (resetPersist) {
             // clear the customConfFile content


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to