Skip to content

Commit 5f94cf1

Browse files
committed
rabbit_deprecated_features: No need to check for HA polices if Khepri is enabled
[Why] Khepri depends on the fact that classic queue mirroring is turned off (i.e. the `classic_queue_mirroring` deprecated feature is denied or removed). Therefore, there is no need to query the database for something that won't be there anyway. [How] We simply return `false` if Khepri is enabled.
1 parent 891ba1a commit 5f94cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_mirror_queue_misc.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ are_cmqs_permitted() ->
951951
are_cmqs_used(_) ->
952952
case rabbit_khepri:get_feature_state() of
953953
enabled ->
954-
are_cmqs_used1();
954+
false;
955955
_ ->
956956
%% If we are using Mnesia, we want to check manually if the table
957957
%% exists first. Otherwise it can conflict with the way

0 commit comments

Comments
 (0)