anchor.diff:  -define(RETRY_INTERVAL, 5 * 1000).
   -define(RETRY_ATTEMPTS, 20).
   
  -subset_design_doc_view(Req, #db{name=BucketName}, DesignName, ViewName,
  -                       [VBucket]) ->
  +subset_design_doc_view(Req, BucketName, DesignName, ViewName, [VBucket]) ->
       DDocId = <<"_design/", DesignName/binary>>,
       [Spec] = build_local_set_specs(BucketName, DDocId, ViewName, [VBucket]),
       Specs = [Spec#set_view_spec{category = dev}],
  
positive.code:                   end, [], NodeToVBuckets),
      finalize_view_merge_params(Req, ViewSpecs);
  
  view_merge_params(Req, #db{name = BucketName}, DDocId, ViewName, NodeToVBuckets) ->
      ViewSpecs = dict:fold(
                    fun(Node, VBuckets, Acc) when Node =:= node() ->
                            build_local_set_specs(BucketName,
  
negative.code: handle_view_req(#httpd{method='GET',
                         path_parts=[_, _, DName, _, ViewName]}=Req,
                  Db, _DDoc) ->
      do_handle_view_req(Req, Db#db.name, DName, ViewName);
  
  handle_view_req(#httpd{method='POST',
                         path_parts=[_, _, DName, _, ViewName]}=Req,
                  Db, _DDoc) ->
      couch_httpd:validate_ctype(Req, "application/json"),
      do_handle_view_req(Req, Db#db.name, DName, ViewName);
  
  handle_view_req(Req, _Db, _DDoc) ->
      couch_httpd:send_method_not_allowed(Req, "GET,POST,HEAD").
  
  do_handle_view_req(Req, DbName, DDocName, ViewName) ->
      VBucketsDict = vbucket_map_mirror:node_vbuckets_dict(binary_to_list(DbName)),
      case dict:find(node(), VBucketsDict) of
          error ->
  