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