fix: install plugins timeout by deadlock

This commit is contained in:
Zhongwen Deng 2022-06-17 11:15:05 +08:00
parent c47d28cdc3
commit bbf45e9d2a
1 changed files with 2 additions and 1 deletions

View File

@ -648,7 +648,8 @@ put_config(Key, Value) when is_atom(Key) ->
put_config([Key], Value);
put_config(Path, Values) when is_list(Path) ->
Opts = #{rawconf_with_defaults => true, override_to => cluster},
case emqx_conf:update([?CONF_ROOT | Path], bin_key(Values), Opts) of
%% Already in cluster_rpc, don't use emqx_conf:update, dead calls
case emqx:update_config([?CONF_ROOT | Path], bin_key(Values), Opts) of
{ok, _} -> ok;
Error -> Error
end.