summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRob Harrop <rob@rabbitmq.com>2011-03-08 16:18:22 +0000
committerRob Harrop <rob@rabbitmq.com>2011-03-08 16:18:22 +0000
commit63f47b7fe07ca71ef6d0e4982af4391650ff704e (patch)
tree23b7ced7c343574551b0423ba713b620914485a2 /src
parentfb963d270c9f04beeba1b1f8377f91b6b20ed736 (diff)
downloadrabbitmq-server-git-63f47b7fe07ca71ef6d0e4982af4391650ff704e.tar.gz
Fix bad path_entry creation
Diffstat (limited to 'src')
-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)).