anchor.diff:              case [N||{N, RState} <- ReplicaStates ++ ExtraStates,
                        lists:member(RState, [active, pending, replica])] of
                   [] ->
  -                    ?log_info("Setting vbucket ~p on master ~p to active",
  -                              [VBucket, Master]),
  +                    ?log_info("Setting vbucket ~p in ~p on master ~p to active",
  +                              [VBucket, Bucket, Master]),
                       ns_memcached:set_vbucket(Master, Bucket, VBucket,
                                                      active),
                       Chain;
  
positive.code:               fun ({N, State}) ->
                        case {HaveAllCopies, State} of
                            {_, S} when S /= dead ->
                                ?log_info("Setting vbucket ~p on ~p from ~p to"
                                          " dead.", [VBucket, N, S]),
                                ns_memcached:set_vbucket(
                                  N, Bucket, VBucket, dead);
                            {true, dead} ->
                                ?log_info("Deleting vbucket ~p on ~p",
                                          [VBucket, N]),
                                ns_memcached:delete_vbucket(N, Bucket, VBucket);
                            {false, dead} ->
                                ok
  
negative.code:                     case lists:member(Master, Zombies) of
                          true -> ok;
                          false ->
                              ?log_error("Master ~p in state ~p for vbucket ~p in ~p but we have extra nodes ~p!",
                                         [Master, State, VBucket, Bucket, X])
                      end,
                      Chain
              end
  