diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-08-28 11:34:02 +0200 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2015-08-28 11:34:02 +0200 |
| commit | 2e2afaecd326ffcb5c8fd43a08a83aa92126a5ed (patch) | |
| tree | 219eae61ac9e163df6f7760c1eb0a6f0c14c7840 /src | |
| parent | a576769d5aff720938077f8a75aa33d5a4ae7c7f (diff) | |
| download | rabbitmq-server-git-2e2afaecd326ffcb5c8fd43a08a83aa92126a5ed.tar.gz | |
Boot steps: Ensure boot step's module is loaded
... before checking if the function is exported.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_boot_steps.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_boot_steps.erl b/src/rabbit_boot_steps.erl index 7232635560..21366877db 100644 --- a/src/rabbit_boot_steps.erl +++ b/src/rabbit_boot_steps.erl @@ -85,6 +85,7 @@ sort_boot_steps(UnsortedSteps) -> case [{StepName, {M,F,A}} || {_App, StepName, Attributes} <- SortedSteps, {mfa, {M,F,A}} <- Attributes, + code:ensure_loaded(M) =/= {module, M} orelse not erlang:function_exported(M, F, length(A))] of [] -> SortedSteps; MissingFns -> exit({boot_functions_not_exported, MissingFns}) |
