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

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


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

commit 535ea7479817725c3f2bc2c1e28d5baef155acba
Author: Kang <[email protected]>
AuthorDate: Wed Jan 10 15:01:49 2024 +0800

    [opt](config) create custom conf dir if not exists (#29391) (#29763)
    
    Co-authored-by: Mingyu Chen <[email protected]>
---
 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 8774e652068..25dac70923d 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
@@ -404,6 +404,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