Skip to content

Commit 96b728a

Browse files
Merge pull request #7614 from rabbitmq/mergify/bp/v3.12.x/pr-7548
Fix rabbit_vm:memory returning stream_queue_coordinator_procs (backport #7548)
2 parents b68252b + df852bf commit 96b728a

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

deps/rabbit/src/rabbit_vm.erl

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ bytes(Words) -> try
177177
end.
178178

179179
interesting_sups() ->
180-
[queue_sups(), quorum_sups(), dlx_sups(), stream_server_sups(), stream_reader_sups(),
180+
[queue_sups(), quorum_sups(), dlx_sups(),
181+
stream_server_sups(), stream_reader_sups(), stream_coordinator(),
181182
conn_sups() | interesting_sups0()].
182183

183184
queue_sups() ->
@@ -188,6 +189,7 @@ quorum_sups() -> [ra_server_sup_sup].
188189
dlx_sups() -> [rabbit_fifo_dlx_sup].
189190
stream_server_sups() -> [osiris_server_sup].
190191
stream_reader_sups() -> [osiris_replica_reader_sup].
192+
stream_coordinator() -> [rabbit_stream_coordinator].
191193

192194
msg_stores() ->
193195
all_vhosts_children(msg_store_transient)
@@ -234,18 +236,17 @@ ranch_server_sups() ->
234236
with(Sups, With) -> [{Sup, With} || Sup <- Sups].
235237

236238
distinguishers() -> with(queue_sups(), fun queue_type/1) ++
237-
with(conn_sups(), fun conn_type/1) ++
238-
with(quorum_sups(), fun ra_type/1).
239+
with(conn_sups(), fun conn_type/1).
239240

240241
distinguished_interesting_sups() ->
241242
[
242243
with(queue_sups(), master),
243244
with(queue_sups(), slave),
244-
with(quorum_sups(), quorum),
245+
quorum_sups(),
245246
dlx_sups(),
246247
stream_server_sups(),
247248
stream_reader_sups(),
248-
with(quorum_sups(), stream),
249+
stream_coordinator(),
249250
with(conn_sups(), reader),
250251
with(conn_sups(), writer),
251252
with(conn_sups(), channel),
@@ -302,12 +303,6 @@ conn_type(PDict) ->
302303
_ -> other
303304
end.
304305

305-
ra_type(PDict) ->
306-
case keyfind('$rabbit_vm_category', PDict) of
307-
{value, rabbit_stream_coordinator} -> stream;
308-
_ -> quorum
309-
end.
310-
311306
%%----------------------------------------------------------------------------
312307

313308
%% NB: this code is non-rabbit specific.

0 commit comments

Comments
 (0)