@@ -1624,23 +1624,16 @@ handle_cast({credit, ChPid, CTag, Credit, Drain},
16241624% This event is necessary for the stats timer to be initialized with
16251625% the correct values once the management agent has started
16261626handle_cast ({force_event_refresh , Ref },
1627- State = # q {consumers = Consumers ,
1628- active_consumer = Holder }) ->
1627+ State = # q {consumers = Consumers }) ->
16291628 rabbit_event :notify (queue_created , infos (? CREATION_EVENT_KEYS , State ), Ref ),
16301629 QName = qname (State ),
16311630 AllConsumers = rabbit_queue_consumers :all (Consumers ),
1632- case Holder of
1633- none ->
1634- [emit_consumer_created (
1635- Ch , CTag , false , AckRequired , QName , Prefetch ,
1636- Args , Ref , ActingUser ) ||
1637- {Ch , CTag , AckRequired , Prefetch , _ , _ , Args , ActingUser }
1638- <- AllConsumers ];
1639- {Ch , CTag } ->
1640- [{Ch , CTag , AckRequired , Prefetch , _ , _ , Args , ActingUser }] = AllConsumers ,
1641- emit_consumer_created (
1642- Ch , CTag , true , AckRequired , QName , Prefetch , Args , Ref , ActingUser )
1643- end ,
1631+ rabbit_log :debug (" Queue ~s forced to re-emit events, consumers: ~p " , [rabbit_misc :rs (QName ), AllConsumers ]),
1632+ [emit_consumer_created (
1633+ Ch , CTag , ActiveOrExclusive , AckRequired , QName , Prefetch ,
1634+ Args , Ref , ActingUser ) ||
1635+ {Ch , CTag , AckRequired , Prefetch , ActiveOrExclusive , _ , Args , ActingUser }
1636+ <- AllConsumers ],
16441637 noreply (rabbit_event :init_stats_timer (State , # q .stats_timer ));
16451638
16461639handle_cast (notify_decorators , State ) ->
0 commit comments