From dbec429fba740a506ea2eaf649370d9878dd6e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 19 Dec 2024 11:54:25 +0100 Subject: [PATCH] rabbit_feature_flags: Fix function name in the controller [Why] `state_after_virtual_state()` meant nothing. `state_after_virtual_reset()` was the name I had in mind. --- deps/rabbit/src/rabbit_ff_controller.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/rabbit/src/rabbit_ff_controller.erl b/deps/rabbit/src/rabbit_ff_controller.erl index 4a463de2b4cf..f09d784b72ad 100644 --- a/deps/rabbit/src/rabbit_ff_controller.erl +++ b/deps/rabbit/src/rabbit_ff_controller.erl @@ -582,7 +582,7 @@ virtually_reset_inventory( fun(FeatureName, _FeatureState) -> FeatureProps = maps:get( FeatureName, FeatureFlags), - state_after_virtual_state( + state_after_virtual_reset( FeatureName, FeatureProps) end, FeatureStates0), StatesPerNode1 = maps:map( @@ -596,14 +596,14 @@ virtually_reset_inventory( false = _NodeAsVirgin) -> Inventory. -state_after_virtual_state(_FeatureName, FeatureProps) +state_after_virtual_reset(_FeatureName, FeatureProps) when ?IS_FEATURE_FLAG(FeatureProps) -> Stability = rabbit_feature_flags:get_stability(FeatureProps), case Stability of required -> true; _ -> false end; -state_after_virtual_state(FeatureName, FeatureProps) +state_after_virtual_reset(FeatureName, FeatureProps) when ?IS_DEPRECATION(FeatureProps) -> not rabbit_deprecated_features:should_be_permitted( FeatureName, FeatureProps).