anchor.diff:                          false ->
                               %% It's an extra node
                               ?log_warning(
  -                               "Master for vbucket ~p is not active, but ~p is, so making that the master.",
  -                              [VBucket, Node]),
  +                               "Master for vbucket ~p in ~p is not active, but ~p is, so making that the master.",
  +                              [VBucket, Bucket, Node]),
                               [Node];
                           Pos ->
                               [Node|lists:nthtail(Pos, Chain)]
                       end;
                   Nodes ->
                       ?log_error(
  -                      "Extra active nodes ~p for vbucket ~p. This should never happen!",
  -                      [Nodes, VBucket]),
  +                      "Extra active nodes ~p for vbucket ~p in ~p. This should never happen!",
  +                      [Nodes, Bucket, VBucket]),
                       Chain
               end;
           C = [{_, MasterState}|ReplicaStates] when MasterState =:= active orelse MasterState =:= zombie ->
               lists:foreach(
                 fun ({_, {N, active}}) ->
  -                      ?log_error("Active replica ~p for vbucket ~p. "
  +                      ?log_error("Active replica ~p for vbucket ~p in ~p. "
                                    "This should never happen, but we have an "
                                    "active master, so I'm deleting it.",
  -                                 [N]),
  +                                 [N, Bucket]),
                         ns_memcached:set_vbucket(N, Bucket, VBucket, dead),
                         ns_vbm_sup:kill_children(N, Bucket, [VBucket]);
                     ({_, {_, replica}})-> % This is what we expect
  
positive.code:             case [N || {N, active} <- ReplicaStates ++ ExtraStates] of
                  [] ->
                      %% We'll let the next pass catch the replicas.
                      ?log_info("Setting vbucket ~p on ~p to active.",
                                [VBucket, Master]),
                      ns_memcached:set_vbucket(Master, Bucket, VBucket, active),
                      Chain;
                  [Node] ->
  
negative.code:                                     Src, Bucket, R)
                                catch
                                    E:R ->
                                        ?log_error("Unable to start replicators on ~p for bucket ~p: ~p",
                                                   [Src, Bucket, {E, R}])
                                end;
                            false ->
                                ok
  