Skip to content

Commit 0178380

Browse files
Resolve a conflict (#9365)
1 parent ba2c3b4 commit 0178380

File tree

3 files changed

+1
-86
lines changed

3 files changed

+1
-86
lines changed

deps/rabbit/src/rabbit_amqqueue.erl

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,21 +2088,6 @@ get_bcc_queue(Q, BCCName) ->
20882088
#resource{virtual_host = VHost} = amqqueue:get_name(Q),
20892089
BCCQueueName = rabbit_misc:r(VHost, queue, BCCName),
20902090
rabbit_amqqueue:lookup(BCCQueueName).
2091-
<<<<<<< HEAD
2092-
=======
2093-
2094-
is_queue_args_combination_permitted(Q) ->
2095-
Durable = amqqueue:is_durable(Q),
2096-
Exclusive = is_exclusive(Q),
2097-
is_queue_args_combination_permitted(Durable, Exclusive).
2098-
2099-
is_queue_args_combination_permitted(Durable, Exclusive) ->
2100-
case not Durable andalso not Exclusive of
2101-
false ->
2102-
true;
2103-
true ->
2104-
rabbit_deprecated_features:is_permitted(transient_nonexcl_queues)
2105-
end.
21062091

21072092
-spec kill_queue_hard(node(), name()) -> ok.
21082093
kill_queue_hard(Node, QRes = #resource{kind = queue}) ->
@@ -2161,14 +2146,3 @@ pid_or_crashed(Node, QRes = #resource{virtual_host = VHost, kind = queue}) ->
21612146
Error = {error, _} -> Error;
21622147
Reason -> {error, Reason}
21632148
end.
2164-
<<<<<<< HEAD
2165-
2166-
sup_child(Node, Sup) ->
2167-
case rpc:call(Node, supervisor, which_children, [Sup]) of
2168-
[{_, Child, _, _}] -> {ok, Child};
2169-
[] -> {error, no_child};
2170-
{badrpc, {'EXIT', {noproc, _}}} -> {error, no_sup}
2171-
end.
2172-
>>>>>>> f0a29c95a5 (make kill_queue/{2,3} and kill_queue_hard/{2,3} from crashing_queues_SUITE reusable)
2173-
=======
2174-
>>>>>>> 5717bcd09d (refactor and move remote_sup_child/2 to rabbit_misc)

deps/rabbit/src/rabbit_channel.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ handle_method(#'basic.publish'{exchange = ExchangeNameBin,
12851285
State1#ch{tx = {Msgs1, Acks}}
12861286
end};
12871287
{error, Reason} ->
1288-
precondition_failed("invalid message: ~tp", [Reason])
1288+
rabbit_misc:precondition_failed("invalid message: ~tp", [Reason])
12891289
end;
12901290

12911291
handle_method(#'basic.nack'{delivery_tag = DeliveryTag,

deps/rabbit_common/src/rabbit_misc.erl

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,7 @@
8383
-export([maps_any/2]).
8484
-export([safe_ets_update_counter/3, safe_ets_update_counter/4, safe_ets_update_counter/5,
8585
safe_ets_update_element/3, safe_ets_update_element/4, safe_ets_update_element/5]).
86-
<<<<<<< HEAD
87-
=======
88-
-export([is_even/1, is_odd/1]).
89-
-export([is_valid_shortstr/1]).
90-
91-
-export([maps_any/2,
92-
maps_put_truthy/3,
93-
maps_put_falsy/3
94-
]).
9586
-export([remote_sup_child/2]).
96-
>>>>>>> 5717bcd09d (refactor and move remote_sup_child/2 to rabbit_misc)
9787

9888
%% Horrible macro to use in guards
9989
-define(IS_BENIGN_EXIT(R),
@@ -1637,60 +1627,12 @@ when is_function(Pred, 2) andalso is_map(Map) ->
16371627
maps_any_1(_Pred, none) ->
16381628
false;
16391629
maps_any_1(Pred, {K, V, I}) ->
1640-
<<<<<<< HEAD
16411630
case Pred(K, V) of
16421631
true ->
16431632
true;
16441633
false ->
16451634
maps_any_1(Pred, maps:next(I))
16461635
end.
1647-
=======
1648-
case Pred(K, V) of
1649-
true ->
1650-
true;
1651-
false ->
1652-
maps_any_1(Pred, maps:next(I))
1653-
end.
1654-
1655-
-spec is_even(integer()) -> boolean().
1656-
is_even(N) ->
1657-
(N band 1) =:= 0.
1658-
-spec is_odd(integer()) -> boolean().
1659-
is_odd(N) ->
1660-
(N band 1) =:= 1.
1661-
1662-
-spec is_valid_shortstr(term()) -> boolean().
1663-
is_valid_shortstr(Bin) when byte_size(Bin) < 256 ->
1664-
is_utf8_no_null(Bin);
1665-
is_valid_shortstr(_) ->
1666-
false.
1667-
1668-
is_utf8_no_null(<<>>) ->
1669-
true;
1670-
is_utf8_no_null(<<0, _/binary>>) ->
1671-
false;
1672-
is_utf8_no_null(<<_/utf8, Rem/binary>>) ->
1673-
is_utf8_no_null(Rem);
1674-
is_utf8_no_null(_) ->
1675-
false.
1676-
1677-
-spec maps_put_truthy(Key, Value, Map) -> Map when
1678-
Map :: #{Key => Value}.
1679-
maps_put_truthy(_K, undefined, M) ->
1680-
M;
1681-
maps_put_truthy(_K, false, M) ->
1682-
M;
1683-
maps_put_truthy(K, V, M) ->
1684-
maps:put(K, V, M).
1685-
1686-
-spec maps_put_falsy(Key, Value, Map) -> Map when
1687-
Map :: #{Key => Value}.
1688-
maps_put_falsy(K, undefined, M) ->
1689-
maps:put(K, undefined, M);
1690-
maps_put_falsy(K, false, M) ->
1691-
maps:put(K, false, M);
1692-
maps_put_falsy(_K, _V, M) ->
1693-
M.
16941636

16951637
-spec remote_sup_child(node(), rabbit_types:sup_ref()) -> rabbit_types:ok_or_error2(rabbit_types:child(), no_child | no_sup).
16961638
remote_sup_child(Node, Sup) ->
@@ -1699,4 +1641,3 @@ remote_sup_child(Node, Sup) ->
16991641
[] -> {error, no_child};
17001642
{badrpc, {'EXIT', {noproc, _}}} -> {error, no_sup}
17011643
end.
1702-
>>>>>>> 5717bcd09d (refactor and move remote_sup_child/2 to rabbit_misc)

0 commit comments

Comments
 (0)