summaryrefslogtreecommitdiff
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
commit291ae6f85aa36cb2dc14f6f864509b82502c71a1 (patch)
tree23b7ced7c343574551b0423ba713b620914485a2
parent72fabd498be215a5a95927a5448d079bdfb4fe05 (diff)
downloadrabbitmq-server-291ae6f85aa36cb2dc14f6f864509b82502c71a1.tar.gz
Fix bad path_entry creation
-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 65518287..ffab0fcb 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)).