summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2013-10-04 13:14:25 -0500
committerRobert Newson <rnewson@apache.org>2014-07-23 17:58:22 +0100
commit77339578ec3ad0f9f3ca261889e432d64eb793f4 (patch)
treed9727ef748f3c289521ba6fbd8edce0cb3790117
parent945bfcac25007518f39cfbc6eb61d6d67773f598 (diff)
downloadcouchdb-77339578ec3ad0f9f3ca261889e432d64eb793f4.tar.gz
Allow callbacks to update their list of workers
We need this to be able to allow coordinators to replace nodes that are in maintenance mode. BugzId: 22729
-rw-r--r--src/rexi_utils.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rexi_utils.erl b/src/rexi_utils.erl
index 79db48c86..6e037571c 100644
--- a/src/rexi_utils.erl
+++ b/src/rexi_utils.erl
@@ -49,6 +49,8 @@ process_mailbox(RefList, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO) ->
case process_message(RefList, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO) of
{ok, Acc} ->
process_mailbox(RefList, Keypos, Fun, Acc, TimeoutRef, PerMsgTO);
+ {new_refs, NewRefList, Acc} ->
+ process_mailbox(NewRefList, Keypos, Fun, Acc, TimeoutRef, PerMsgTO);
{stop, Acc} ->
{ok, Acc};
Error ->