File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -274,17 +274,20 @@ list_for_source(SrcName) ->
274
274
<- mnesia :match_object (rabbit_route , Route , read )]
275
275
end ).
276
276
277
- list_for_destination (DstName ) ->
278
- implicit_for_destination (DstName ) ++
279
- mnesia :async_dirty (
277
+ list_for_destination (DstName = # resource {virtual_host = VHostPath }) ->
278
+ AllBindings = mnesia :async_dirty (
280
279
fun () ->
281
280
Route = # route {binding = # binding {destination = DstName ,
282
281
_ = '_' }},
283
282
[reverse_binding (B ) ||
284
283
# reverse_route {reverse_binding = B } <-
285
284
mnesia :match_object (rabbit_reverse_route ,
286
285
reverse_route (Route ), read )]
287
- end ).
286
+ end ),
287
+ Filtered = lists :filter (fun (# binding {source = S }) ->
288
+ S =/= ? DEFAULT_EXCHANGE (VHostPath )
289
+ end , AllBindings ),
290
+ implicit_for_destination (DstName ) ++ Filtered .
288
291
289
292
implicit_bindings (VHostPath ) ->
290
293
DstQueues = rabbit_amqqueue :list_names (VHostPath ),
You can’t perform that action at this time.
0 commit comments