diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2013-10-04 13:14:25 -0500 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2014-07-23 17:58:22 +0100 |
commit | 77339578ec3ad0f9f3ca261889e432d64eb793f4 (patch) | |
tree | d9727ef748f3c289521ba6fbd8edce0cb3790117 | |
parent | 945bfcac25007518f39cfbc6eb61d6d67773f598 (diff) | |
download | couchdb-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.erl | 2 |
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 -> |