summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_exchange_type_topic.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_exchange_type_topic.erl b/src/rabbit_exchange_type_topic.erl
index 655182878e..ffab0fcb05 100644
--- a/src/rabbit_exchange_type_topic.erl
+++ b/src/rabbit_exchange_type_topic.erl
@@ -127,8 +127,8 @@ with_path_acc(X, Fun, [{Node, _} | ParentPath], PathAcc) ->
NewPathAcc
end.
-path_entry(X, Path = [{Node, _} | _]) ->
- {Path, trie_binding_count(X, Node), trie_child_count(X, Node)}.
+path_entry(X, Path = [{Node, W}, {Parent, _} | _]) ->
+ {Parent, W, {trie_binding_count(X, Node), trie_child_count(X, Node)}}.
binding_path(#binding{source = X, key = K}) ->
follow_down_get_path(X, split_topic_key(K)).