summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-05-23 17:46:11 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-05-23 17:46:11 +0100
commit2c8f1e389a7f771d4826d4ec845160571e2177b0 (patch)
tree9708a9ec5058a6b5060e601768595aff10306626 /src
parente56cacba6b3f19e028f688578abbdc958f46a1a3 (diff)
downloadrabbitmq-server-git-2c8f1e389a7f771d4826d4ec845160571e2177b0.tar.gz
Tell the federated queue about basic.get.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_amqqueue_process.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 6ebfd1f34f..2dc85d6373 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -1107,11 +1107,12 @@ handle_call({notify_down, ChPid}, _From, State) ->
end;
handle_call({basic_get, ChPid, NoAck, LimiterPid}, _From,
- State = #q{q = #amqqueue{name = QName}}) ->
+ State = #q{q = Q = #amqqueue{name = QName}}) ->
AckRequired = not NoAck,
State1 = ensure_expiry_timer(State),
case fetch(AckRequired, State1) of
{empty, State2} ->
+ rabbit_federation_queue:basic_get(Q),
reply(empty, State2);
{{Message, IsDelivered, AckTag}, State2} ->
State3 = #q{backing_queue = BQ, backing_queue_state = BQS} =