File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 118
118
}}).
119
119
120
120
are_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
127
134
end .
128
135
129
136
-define (CONSUMER_INFO_KEYS ,
Original file line number Diff line number Diff line change @@ -985,7 +985,7 @@ list_transient() ->
985
985
}).
986
986
987
987
list_transient_in_mnesia () ->
988
- Pattern = amqqueue :pattern_match_all ( ),
988
+ Pattern = amqqueue :pattern_match_on_durable ( false ),
989
989
AllQueues = mnesia :dirty_match_object (
990
990
? MNESIA_TABLE ,
991
991
Pattern ),
You can’t perform that action at this time.
0 commit comments