This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch config-put-value-if-changed in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 1bf4d2beead1104b43072fee1b3b30ae2bce026d Author: Robert Newson <[email protected]> AuthorDate: Wed Nov 26 16:48:44 2025 +0000 only put_value if value has changed --- src/config/src/config.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/src/config.erl b/src/config/src/config.erl index 70b8883f9..dc286f072 100644 --- a/src/config/src/config.erl +++ b/src/config/src/config.erl @@ -369,11 +369,11 @@ handle_call(reload, _From, #config{} = Config) -> maps:foreach( fun({Sec, Key}, V) -> VExisting = get_value(Sec, Key, undefined), - put_value(Sec, Key, V), case V =:= VExisting of true -> ok; false -> + put_value(Sec, Key, V), Msg = "Reload detected config change ~s.~s = ~p", Args = [Sec, Key, maybe_conceal(V, is_sensitive(Sec, Key))], couch_log:notice(Msg, Args),
