summaryrefslogtreecommitdiff
path: root/src/rabbit_exchange_type_topic.erl
diff options
context:
space:
mode:
authorRob Harrop <rob@rabbitmq.com>2011-03-09 11:31:47 +0000
committerRob Harrop <rob@rabbitmq.com>2011-03-09 11:31:47 +0000
commitefc937c34e3984ab25a053ff240d8d8e0034f5b6 (patch)
tree7edd4c81ec2f2f1175e6954ba721fefae96ce909 /src/rabbit_exchange_type_topic.erl
parentb52a76575e3e7e875a8d9cababfb9247490f716c (diff)
downloadrabbitmq-server-efc937c34e3984ab25a053ff240d8d8e0034f5b6.tar.gz
Fixed bug in the QPid tests. My tests were passing because I used an exchange name in both add and remove calls
Diffstat (limited to 'src/rabbit_exchange_type_topic.erl')
-rw-r--r--src/rabbit_exchange_type_topic.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_exchange_type_topic.erl b/src/rabbit_exchange_type_topic.erl
index a7d36533..ffd1e583 100644
--- a/src/rabbit_exchange_type_topic.erl
+++ b/src/rabbit_exchange_type_topic.erl
@@ -67,7 +67,7 @@ add_binding(true, _Exchange, Binding) ->
add_binding(false, _Exchange, _Binding) ->
ok.
-remove_bindings(true, X, Bs) ->
+remove_bindings(true, #exchange{name = X}, Bs) ->
%% The remove process is split into two distinct phases. In the
%% first phase we gather the lists of bindings and edges to
%% delete, then in the second phase we process all the