File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,16 @@ CONF_Int32(log_verbose_level, "5");
54
54
// Only works when starting Cloud with --console.
55
55
CONF_Bool (enable_file_logger, " true" );
56
56
57
- // Custom conf path is default the same as conf path, and configs will be append to it.
58
- // Otherwise, will a new custom conf file will be created.
59
- CONF_String (custom_conf_path, " ./conf/doris_cloud.conf" );
57
+ // Custom conf path is default empty.
58
+ // All mutable configs' modification needed to be persisted will be appended to conf path
59
+ // specified when started.
60
+ //
61
+ // If it is set to equivalent value of conf path specified when started,
62
+ // mutable configs' modification behavior will be the same as the description above.
63
+ //
64
+ // Otherwise, a new custom conf file will be created when mutable configs are modified
65
+ // and persisted, with all modification written to it.
66
+ CONF_String (custom_conf_path, " " );
60
67
61
68
// recycler config
62
69
CONF_mInt64 (recycle_interval_seconds, " 3600" );
Original file line number Diff line number Diff line change @@ -202,6 +202,9 @@ int main(int argc, char** argv) {
202
202
std::cerr << " failed to init config file, conf=" << conf_file << std::endl;
203
203
return -1 ;
204
204
}
205
+ if (config::custom_conf_path.empty ()) {
206
+ config::custom_conf_path = conf_file;
207
+ }
205
208
if (!std::filesystem::equivalent (conf_file, config::custom_conf_path) &&
206
209
!config::init (config::custom_conf_path.c_str (), false )) {
207
210
std::cerr << " failed to init custom config file, conf=" << config::custom_conf_path
You can’t perform that action at this time.
0 commit comments