anchor.diff:                        [Nodes, VBucket]),
                       Chain
               end;
  -        C = [{_, active}|ReplicaStates] ->
  +        C = [{_, MasterState}|ReplicaStates] when MasterState =:= active orelse MasterState =:= zombie ->
               lists:foreach(
                 fun ({_, {N, active}}) ->
                         ?log_error("Active replica ~p for vbucket ~p. "
  
positive.code:     NodeStates = [{N, S} || {N, V, S} <- States, V == VBucket],
      ChainStates = lists:map(fun (N) ->
                                      case lists:keyfind(N, 1, NodeStates) of
                                          false -> {N, missing};
                                          X -> X
                                      end
                              end, Chain),
  
negative.code:     case ChainStates of
          [{undefined, _}|_] ->
              Chain;
          [{Master, State}|ReplicaStates] when State /= active andalso State /= zombie ->
              case [N || {N, active} <- ReplicaStates ++ ExtraStates] of
                  [] ->
                      %% We'll let the next pass catch the replicas.
  