From 3f7670d2b3458658efe62b7282b10d4ab35df863 Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Tue, 15 Oct 2024 16:30:39 +0100 Subject: [PATCH] QQ: fix the key_metrics_rpc function. Currently this function always falls back to the compatibility code and never gets the benefit of using ra:key_metrics/1 due to incorrect use of the map update operatior ":=" instead of the insert operator "=>". (cherry picked from commit 3b1ef8f529acbf8846f22149452b6242639273d9) --- 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 94e2148aec31..2fb224889464 100644 --- a/deps/rabbit/src/rabbit_quorum_queue.erl +++ b/deps/rabbit/src/rabbit_quorum_queue.erl @@ -1160,7 +1160,7 @@ cluster_state(Name) -> key_metrics_rpc(ServerId) -> Metrics = ra:key_metrics(ServerId), - Metrics#{machine_version := rabbit_fifo:version()}. + Metrics#{machine_version => rabbit_fifo:version()}. -spec status(rabbit_types:vhost(), Name :: rabbit_misc:resource_name()) -> [[{binary(), term()}]] | {error, term()}.