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 38f9ac99df [fix](bug) fix be custom conf persistence path and read 
path are inconsistent (#22520)
38f9ac99df is described below

commit 38f9ac99df8f2219724556db694f1b707e7a3f1c
Author: zxealous <[email protected]>
AuthorDate: Sat Aug 5 10:22:08 2023 +0800

    [fix](bug) fix be custom conf persistence path and read path are 
inconsistent (#22520)
    
    be_custom.conf persistence path is ${doris_home}/conf/be_custom.conf, but 
if we set ${custom_config_dir} is a different path, will cause be can't read 
be_custom.conf from ${custom_config_dir}.
    
    set be_custom.conf persist path to ${custom_config_dir}.
---
 be/src/common/config.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 1c353eb61d..c6b0e08e19 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -1412,7 +1412,7 @@ Status persist_config(const std::string& field, const 
std::string& value) {
     // lock to make sure only one thread can modify the be_custom.conf
     std::lock_guard<std::mutex> l(custom_conf_lock);
 
-    static const std::string conffile = std::string(getenv("DORIS_HOME")) + 
"/conf/be_custom.conf";
+    static const std::string conffile = config::custom_config_dir + 
"/be_custom.conf";
 
     Properties tmp_props;
     if (!tmp_props.load(conffile.c_str(), false)) {


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

Reply via email to