File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 118118 }}).
119119
120120are_transient_nonexcl_used (_ ) ->
121- case rabbit_db_queue :list_transient () of
122- {ok , Queues } ->
123- NonExclQueues = [Q || Q <- Queues , not is_exclusive (Q )],
124- length (NonExclQueues ) > 0 ;
125- {error , _ } ->
126- undefined
121+ case rabbit_db :is_virgin_node () of
122+ true ->
123+ % % a virgin node can't have any queues and the check is performed before
124+ % % metadata store is ready, so skip the query
125+ false ;
126+ false ->
127+ case rabbit_db_queue :list_transient () of
128+ {ok , Queues } ->
129+ NonExclQueues = [Q || Q <- Queues , not is_exclusive (Q )],
130+ length (NonExclQueues ) > 0 ;
131+ {error , _ } ->
132+ undefined
133+ end
127134 end .
128135
129136-define (CONSUMER_INFO_KEYS ,
Original file line number Diff line number Diff line change @@ -985,7 +985,7 @@ list_transient() ->
985985 }).
986986
987987list_transient_in_mnesia () ->
988- Pattern = amqqueue :pattern_match_all ( ),
988+ Pattern = amqqueue :pattern_match_on_durable ( false ),
989989 AllQueues = mnesia :dirty_match_object (
990990 ? MNESIA_TABLE ,
991991 Pattern ),
You can’t perform that action at this time.
0 commit comments