anchor.diff:                    end, [], NodeToVBuckets),
       finalize_view_merge_params(Req, ViewSpecs);
   
  -view_merge_params(Req, #db{name = BucketName}, DDocId, ViewName, NodeToVBuckets) ->
  +view_merge_params(Req, BucketName, DDocId, ViewName, NodeToVBuckets) ->
       ViewSpecs = dict:fold(
                     fun(Node, VBuckets, Acc) when Node =:= node() ->
                             build_local_set_specs(BucketName,
  
positive.code:     when_has_active_vbuckets(
        Req, DbName,
        fun () ->
              MergeParams = view_merge_params(Req, Db, nil, <<"_all_docs">>),
              couch_index_merger:query_index(couch_view_merger, MergeParams, Req)
        end).
  
  view_merge_params(Req, #db{name=BucketName} = Db, DDocId, ViewName) ->
      Dict = vbucket_map_mirror:node_vbuckets_dict(binary_to_list(BucketName)),
      view_merge_params(Req, Db, DDocId, ViewName, Dict).
  
  %% we're handling only the special views (_all_docs) in the old way
  view_merge_params(Req, #db{name = BucketName},
                    DDocId, ViewName, NodeToVBuckets) when DDocId =:= nil ->
      ViewSpecs = dict:fold(
                    fun(Node, VBuckets, Acc) when Node =:= node() ->
  
negative.code:         _ ->
              case run_on_subset(Req, DbName) of
                  full_set ->
                      full_design_doc_view(Req, DbName, DDocName, ViewName, VBucketsDict);
                  VBucket ->
                      subset_design_doc_view(Req, DbName, DDocName, ViewName, [VBucket])
              end
      end.
  
  