summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-19 13:05:33 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-08-19 13:05:33 +0100
commitc1f7f3855f8434ab45d1c64ce05d6a97d6592eed (patch)
treeb18d4faf6eac624be265c25ae2572a9ae7a896d9
parentc0d23f438a8b820bfb0eadd95449d31bfcc1423f (diff)
parent5738cee6cb1490c78f5bd8ec59bc1a0b37f2667e (diff)
downloadrabbitmq-server-c1f7f3855f8434ab45d1c64ce05d6a97d6592eed.tar.gz
merge bug 24356 into default (pg2_fixed will blow up if compiled with R12B5)
-rw-r--r--src/mirrored_supervisor.erl9
-rw-r--r--src/rabbit_amqqueue_process.erl11
2 files changed, 13 insertions, 7 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl
index e273470f..8dfe39f8 100644
--- a/src/mirrored_supervisor.erl
+++ b/src/mirrored_supervisor.erl
@@ -311,9 +311,12 @@ init({overall, Group, Init}) ->
Mirroring = {mirroring, {?MODULE, start_internal,
[Group, ChildSpecs]},
permanent, 16#ffffffff, worker, [?MODULE]},
- %% Important: Delegate MUST start after Mirroring, see comment in
- %% handle_info('DOWN', ...) below
- {ok, {{one_for_all, 0, 1}, [Mirroring, Delegate]}};
+ %% Important: Delegate MUST start before Mirroring so that
+ %% when we shut down from above it shuts down last, so
+ %% Mirroring does not see it die.
+ %%
+ %% See comment in handle_info('DOWN', ...) below
+ {ok, {{one_for_all, 0, 1}, [Delegate, Mirroring]}};
ignore ->
ignore
end;
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 11a95a62..e5038efe 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -817,10 +817,13 @@ emit_consumer_deleted(ChPid, ConsumerTag) ->
prioritise_call(Msg, _From, _State) ->
case Msg of
- info -> 9;
- {info, _Items} -> 9;
- consumers -> 9;
- _ -> 0
+ info -> 9;
+ {info, _Items} -> 9;
+ consumers -> 9;
+ {basic_consume, _, _, _, _, _, _} -> 7;
+ {basic_cancel, _, _, _} -> 7;
+ stat -> 7;
+ _ -> 0
end.
prioritise_cast(Msg, _State) ->