Skip to content

Commit

Permalink
Merge pull request #4655 from ZhiHanZ/reload
Browse files Browse the repository at this point in the history
[Cloud] keep environment variable immutable during reload
  • Loading branch information
BohuTANG authored Apr 1, 2022
2 parents d234264 + 7190f1c commit 26fc9f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions query/src/sessions/session_mgr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ impl SessionManager {
let mut config = self.conf.write();
let config_file = config.config_file.clone();
*config = Config::load_from_file(&config_file)?;
// ensure the environment variables are immutable
*config = Config::load_from_env(&config)?;
config.config_file = config_file;
config.clone()
};
Expand Down

0 comments on commit 26fc9f0

Please sign in to comment.