Skip to content

Commit 0aee9ba

Browse files
committed
Run rabbit_registry boot step after pre_boot
The `rabbit_registry` boot step starts up the `rabbit_registry` gen server from `rabbit_common`. This is a registry somewhat similar to the feature flag registry - it's meant to protect an ETS table used for looking up implementers of behaviors. The registry and its ETS table should be available as early as possible even if it is empty: the step should enable external_infrastructure rather than require it.
1 parent cc0458a commit 0aee9ba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

deps/rabbit/src/rabbit.erl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@
6565
{requires, pre_boot},
6666
{enables, external_infrastructure}]}).
6767

68+
-rabbit_boot_step({rabbit_registry,
69+
[{description, "plugin registry"},
70+
{mfa, {rabbit_sup, start_child,
71+
[rabbit_registry]}},
72+
{requires, pre_boot},
73+
{enables, external_infrastructure}]}).
74+
6875
-rabbit_boot_step({database,
6976
[{mfa, {rabbit_db, init, []}},
7077
{requires, file_handle_cache},
@@ -110,13 +117,6 @@
110117
-rabbit_boot_step({external_infrastructure,
111118
[{description, "external infrastructure ready"}]}).
112119

113-
-rabbit_boot_step({rabbit_registry,
114-
[{description, "plugin registry"},
115-
{mfa, {rabbit_sup, start_child,
116-
[rabbit_registry]}},
117-
{requires, external_infrastructure},
118-
{enables, kernel_ready}]}).
119-
120120
-rabbit_boot_step({rabbit_core_metrics,
121121
[{description, "core metrics storage"},
122122
{mfa, {rabbit_sup, start_child,

0 commit comments

Comments
 (0)