anchor.diff:                                    [V, Bucket, Old, New]),
               case Old of
                   undefined ->
  -                    ns_memcached:set_vbucket_state(New, Bucket, V, active);
  +                    %% This will fail if another node is restarting.
  +                    %% The janitor will catch it later if it does.
  +                    catch ns_memcached:set_vbucket_state(New, Bucket, V, active);
                   _ ->
                       ns_vbm_sup:move(Bucket, V, Old, New)
               end,
  
positive.code: kill_vbuckets(_, _, []) ->
      ok;
  kill_vbuckets(Node, Bucket, [V|Vs]) ->
      case ns_memcached:set_vbucket_state(Node, Bucket, V, dead) of
          {ok, _} ->
              kill_vbuckets(Node, Bucket, Vs);
          Error -> {error, Error}
  
negative.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]),
              %% The janitor will catch it if this fails.
              catch ns_memcached:set_vbucket_state(NewMaster, V, active),
              NewChainExtended
      end.
  
  