From 84d546f8da885d4ea22ef2971b27b52866eec774 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Tue, 13 Apr 2021 14:48:38 +0300 Subject: [PATCH] binary_to_atom/1 is not available in Erlang 22.3 so use rabbit_data_coercion:to_atom/1. References 2968 (cherry picked from commit 3eee69abf4582991c227a771ef59f98255de8dda) --- deps/rabbit/src/rabbit_quorum_queue.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/rabbit/src/rabbit_quorum_queue.erl b/deps/rabbit/src/rabbit_quorum_queue.erl index c6d493737706..ba3c9fd78822 100644 --- a/deps/rabbit/src/rabbit_quorum_queue.erl +++ b/deps/rabbit/src/rabbit_quorum_queue.erl @@ -123,7 +123,7 @@ declare(Q) when ?amqqueue_is_quorum(Q) -> {ok, A} -> A; {error, {too_long, N}} -> - binary_to_atom(ra:new_uid(N)) + rabbit_data_coercion:to_atom(ra:new_uid(N)) end, Id = {RaName, node()}, Nodes = select_quorum_nodes(QuorumSize, rabbit_mnesia:cluster_nodes(all)),