summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Hood <0x6e6562@gmail.com>2008-07-25 11:59:45 +0100
committerBen Hood <0x6e6562@gmail.com>2008-07-25 11:59:45 +0100
commitfbab5e9e4950211cbe30365a303687b2935a3eb6 (patch)
treefafa8f9fbffdca2a314869c0a1fddff319d76b72 /src
parent71b79688ec5de53721d978c2e2d7fc01cac44f24 (diff)
downloadrabbitmq-server-git-fbab5e9e4950211cbe30365a303687b2935a3eb6.tar.gz
Bug fix for basic-get, exposed by running qpid test suite
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_channel.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl
index 144253f89e..b02a3c0a38 100644
--- a/src/rabbit_channel.erl
+++ b/src/rabbit_channel.erl
@@ -171,9 +171,7 @@ return_queue_declare_ok(State, NoWait, Q) ->
expand_queue_name_shortcut(<<>>, #ch{ most_recently_declared_queue = <<>> }) ->
rabbit_misc:protocol_error(
not_allowed, "no previously declared queue", []);
-expand_queue_name_shortcut(<<>>, #ch{ virtual_host = VHostPath,
- most_recently_declared_queue = MRDQ }) ->
- rabbit_misc:r(VHostPath, queue, MRDQ);
+expand_queue_name_shortcut(<<>>, #ch{ most_recently_declared_queue = MRDQ }) -> MRDQ;
expand_queue_name_shortcut(QueueNameBin, #ch{ virtual_host = VHostPath }) ->
rabbit_misc:r(VHostPath, queue, QueueNameBin).