Merge pull request #14003 from rabbitmq/fix-federation
Trigger a 4.2.x alpha release build / trigger_alpha_build (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run Details
Test (make) / Type check (1.17, 27) (push) Waiting to run Details

Federation: move ETS initialisation to supervisor
This commit is contained in:
Michael Klishin 2025-06-02 18:29:20 +04:00 committed by GitHub
commit 50c095d25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,6 @@
-export([init/1]).
start(_Type, _StartArgs) ->
?FEDERATION_ETS = ets:new(?FEDERATION_ETS, [set, public, named_table]),
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
stop(_State) ->

View File

@ -45,6 +45,7 @@ stop() ->
%%----------------------------------------------------------------------------
init([]) ->
?FEDERATION_ETS = ets:new(?FEDERATION_ETS, [set, public, named_table]),
Status = #{
id => status,
start => {rabbit_federation_status, start_link, []},