anchor.diff:               end, Map4, lists:seq(2, ChainLength)),
       ns_bucket:set_servers(Bucket, KeepNodes),
       ns_bucket:set_map(Bucket, Map5),
  -    ns_janitor:cleanup(Bucket, Map5, KeepNodes),
       %% Shun myself last
       ShunNodes = lists:delete(node(), EvacuateNodes),
       lists:foreach(fun (N) -> ns_cluster:shun(N) end, ShunNodes),
  
positive.code:         [NewMaster|_] ->
              error_logger:info_msg("~p:promote_replicas(~p, ~p, ~p, ~p): Setting node ~p active for vbucket ~p~n",
                                    [?MODULE, Bucket, V, RemapNodes, Chain, NewMaster, V]),
              ns_memcached:set_vbucket_state(NewMaster, V, active),
              NewChainExtended
      end.
  
  
negative.code: kill_vbuckets(_, _, []) ->
      ok;
  kill_vbuckets(Node, Bucket, [V|Vs]) ->
      case catch ns_memcached:set_vbucket_state(Node, Bucket, V, dead) of
          {ok, _} ->
              kill_vbuckets(Node, Bucket, Vs);
          Error -> {error, Error}
  