Skip to content

Commit 2e2afae

Browse files
committed
Boot steps: Ensure boot step's module is loaded
... before checking if the function is exported.
1 parent a576769 commit 2e2afae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rabbit_boot_steps.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ sort_boot_steps(UnsortedSteps) ->
8585
case [{StepName, {M,F,A}} ||
8686
{_App, StepName, Attributes} <- SortedSteps,
8787
{mfa, {M,F,A}} <- Attributes,
88+
code:ensure_loaded(M) =/= {module, M} orelse
8889
not erlang:function_exported(M, F, length(A))] of
8990
[] -> SortedSteps;
9091
MissingFns -> exit({boot_functions_not_exported, MissingFns})

0 commit comments

Comments
 (0)