Skip to content

Commit 23a834e

Browse files
committed
Feature flags: Only enable stable feature flags in enable_all/0
This makes the behavior consistent with the virgin node startup behavior. It also avoids users to be surprised with experimental features being enabled.
1 parent 4a63d66 commit 23a834e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deps/rabbit/src/rabbit_feature_flags.erl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,18 @@ enable(FeatureNames) when is_list(FeatureNames) ->
329329

330330
-spec enable_all() -> ok | {error, any()}.
331331
%% @doc
332-
%% Enables all supported feature flags.
332+
%% Enables all stable feature flags.
333+
%%
334+
%% Experimental feature flags are not enabled with this function. Use {@link
335+
%% enable/1} to enable them.
333336
%%
334337
%% @returns `ok' if the feature flags were successfully enabled,
335338
%% or `{error, Reason}' if one feature flag could not be enabled
336339
%% (subsequent feature flags in the dependency tree are left
337340
%% unchanged).
338341

339342
enable_all() ->
340-
with_feature_flags(maps:keys(list(all)), fun enable/1).
343+
enable_all(stable).
341344

342345
-spec enable_all(stability()) -> ok | {error, any()}.
343346
%% @doc

0 commit comments

Comments
 (0)