anchor.diff:                    end)
           end,
           {stop, Reply};
  -    false when NumReplies >= R ->
  -        case agree(GroupedReplies) of
  -        false ->
  -            {ok, {WaitingCount-1, R, GroupedReplies}};
  -        true ->
  -            {_Worker, Reply} = get_highest_version(GroupedReplies),
  -            {stop, Reply}
  -        end;
       false when WaitingCount =:= 1 ->
           rexi;
       false ->
  
positive.code:     end,
      N = list_to_integer(couch_config:get("cluster","n","3")),
      NumReplies = length(GroupedReplies),
      Quorum = find_r_equal_versions(N div 2 + 1, GroupedReplies),
      case Quorum of
      {_Worker, Reply} ->
          case agree(GroupedReplies) of
          false when Reply =/= {not_found, missing} ->
              read_quorum_repairer(GroupedReplies, Reply);
          true ->
              ok
          end,
          {stop, Reply};
  
negative.code:         end, GroupedReplies0),
      WorkerDocsZip =
      lists:map(
          fun({Worker, _Reply}) ->
              {Seq0, [_|T]} = Doc0#doc.revs,
              Docs = case Seq0 of
              0 -> [Doc0];
              _ -> [Doc0#doc{revs={Seq0-1, T}}]
              end,
              {Worker, Docs}
          end, GroupedReplies),
  