summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hood <0x6e6562@gmail.com>2008-08-05 16:37:29 +0100
committerBen Hood <0x6e6562@gmail.com>2008-08-05 16:37:29 +0100
commitc2659a9444f11ba65ab33e32dad9550c243939d2 (patch)
treeb1baf2b9937268809a6ffd3db19f093831d585d7
parent29a9c29ea58aeee65290beaeb4eaceebc7eff563 (diff)
downloadrabbitmq-server-c2659a9444f11ba65ab33e32dad9550c243939d2.tar.gz
Most recently declared queue was returning the entire resource
-rw-r--r--src/rabbit_channel.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 426cbd78..6719a974 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -181,7 +181,7 @@ expand_routing_key_shortcut(<<>>, <<>>,
not_allowed, "no previously declared queue", []);
expand_routing_key_shortcut(<<>>, <<>>,
#ch{ most_recently_declared_queue = MRDQ }) ->
- MRDQ;
+ MRDQ#resource.name;
expand_routing_key_shortcut(_QueueNameBin, RoutingKey, _State) ->
RoutingKey.