summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bakken <luke@bakken.io>2021-11-09 15:56:08 -0800
committermergify-bot <noreply@mergify.io>2021-11-15 15:06:34 +0000
commit23bdb796438c1e89c449ab7a84fb18bcba1ec70f (patch)
tree540f3fb827f4e74c490ffe19dc87f33e29bf138e
parent5358a4a5c4c36232b04d1ae35956bd4bd8ff8de4 (diff)
downloadrabbitmq-server-git-23bdb796438c1e89c449ab7a84fb18bcba1ec70f.tar.gz
Set core_started before running postlaunch phasemergify/bp/v3.9.x/pr-3685
Since the postlaunch phase is async there is a slight chance that rabbit_direct connections will not see core_started if attempted during postlaunch (cherry picked from commit 223581f6fb4c0cecf7a4a9d13a270a133c40ccb4)
-rw-r--r--deps/rabbit/src/rabbit.erl2
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 ->