Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Introduce amqqueue.pending_slave_pids #112

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/rabbit.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
gm_pids, %% transient
decorators, %% transient, recalculated as above
state, %% durable (have we crashed?)
policy_version}).
policy_version,
pending_slave_pids}).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcorbacho I believe amqqueue.slave_pids_pending_shutdown would be clearer. WDYT?


-record(exchange_serial, {name, next}).

Expand Down
3 changes: 2 additions & 1 deletion src/rabbit_amqqueue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ declare(QueueName, Durable, AutoDelete, Args, Owner, Node) ->
recoverable_slaves = [],
gm_pids = [],
state = live,
policy_version = 0 })),
policy_version = 0,
pending_slave_pids = []})),

Node1 = case rabbit_queue_master_location_misc:get_location(Q) of
{ok, Node0} -> Node0;
Expand Down