anchor.diff:      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},
  +view_merge_params(Req, #db{name = BucketName} = Db,
                     DDocId, ViewName, NodeToVBuckets) when DDocId =:= nil ->
       ViewSpecs = dict:fold(
                     fun(Node, VBuckets, Acc) when Node =:= node() ->
  
positive.code:                           [build_remote_set_specs(Node, BucketName,
                                                    DDocId, ViewName, VBuckets) | Acc]
                    end, [], NodeToVBuckets),
      finalize_view_merge_params(Req, ViewSpecs).
  
  finalize_view_merge_params(Req, ViewSpecs) ->
      case Req#httpd.method of
          'GET' ->
              Body = [],
  
negative.code:                           [build_remote_simple_specs(Node, BucketName,
                                                       ViewName, VBuckets) | Acc]
                    end, [], NodeToVBuckets),
      finalize_view_merge_params(Req, Db, DDocId, ViewName, ViewSpecs);
  
  view_merge_params(Req, #db{name = BucketName} = Db, DDocId, ViewName, NodeToVBuckets) ->
      ViewSpecs = dict:fold(
                    fun(Node, VBuckets, Acc) when Node =:= node() ->
                            build_local_set_specs(BucketName,
  