diff options
author | Luke Bakken <luke@bakken.io> | 2021-11-09 15:56:08 -0800 |
---|---|---|
committer | Luke Bakken <luke@bakken.io> | 2021-11-11 08:51:02 -0800 |
commit | 223581f6fb4c0cecf7a4a9d13a270a133c40ccb4 (patch) | |
tree | fca546c9c737d84b8d6082fd50253ae7148ac124 | |
parent | 13e62b0939139293e35406c69376b6c883d1ca97 (diff) | |
download | rabbitmq-server-git-lukebakken/core-started-before-postlaunch-phase.tar.gz |
Set core_started before running postlaunch phaselukebakken/core-started-before-postlaunch-phase
Since the postlaunch phase is async there is a slight chance that rabbit_direct connections will not see core_started if attempted during postlaunch
-rw-r--r-- | deps/rabbit/src/rabbit.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/rabbit/src/rabbit.erl b/deps/rabbit/src/rabbit.erl index 23719c517b..32e07d095b 100644 --- a/deps/rabbit/src/rabbit.erl +++ b/deps/rabbit/src/rabbit.erl @@ -913,8 +913,8 @@ start(normal, []) -> ?LOG_DEBUG("== Boot steps =="), ok = rabbit_boot_steps:run_boot_steps([rabbit | Plugins]), - run_postlaunch_phase(Plugins), rabbit_boot_state:set(core_started), + run_postlaunch_phase(Plugins), {ok, SupPid} catch throw:{error, _} = Error -> |