anchor.diff:                            [build_remote_set_specs(Node, BucketName,
                                                     DDocId, ViewName, VBuckets) | Acc]
                     end, [], NodeToVBuckets),
  -    finalize_view_merge_params(Req, ViewSpecs).
  -
  -finalize_view_merge_params(Req, ViewSpecs) ->
  +    finalize_view_merge_params(Req, Db, DDocId, ViewName, ViewSpecs).
  +
  +finalize_view_merge_params(Req, _Db, _DDocId, _ViewName, ViewSpecs) ->
       case Req#httpd.method of
           'GET' ->
               Body = [],
  
positive.code:     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:                           [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,
  