summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_exchange.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl
index a1321250de..c6fdb6eedb 100644
--- a/src/rabbit_exchange.erl
+++ b/src/rabbit_exchange.erl
@@ -207,7 +207,8 @@ route(#exchange{name = Name, type = topic}, RoutingKey) ->
queue_name = QName,
key = BindingKey}} <- mnesia:table(route),
ExchangeName == Name,
- % TODO: This causes a full table scan (see bug 19336)
+ % TODO: This causes a full scan for each entry
+ % with the same exchange (see bug 19336)
topic_matches(BindingKey, RoutingKey)]),
lookup_qpids(mnesia:activity(async_dirty, fun() -> qlc:e(Query) end));