anchor.diff:      NodeToVBuckets.
   
   
  +%% we're handling only the special views in the old way
  +view_merge_params(Req, #db{name = BucketName} = Db,
  +                  DDocId, ViewName) when DDocId =:= nil ->
  +    NodeToVBuckets = node_vbuckets_dict(?b2l(BucketName)),
  +    Config = ns_config:get(),
  +    ViewSpecs = dict:fold(
  +        fun(Node, VBuckets, Acc) when Node =:= node() ->
  +            build_local_simple_specs(BucketName, DDocId,
  +                                     ViewName, VBuckets) ++ Acc;
  +        (Node, VBuckets, Acc) ->
  +           [build_remote_simple_specs(Node, BucketName,
  +                                      ViewName, VBuckets, Config) | Acc]
  +        end, [], NodeToVBuckets),
  +    view_merge_params(Req, Db, DDocId, ViewName, ViewSpecs);
  +
   view_merge_params(Req, #db{name = BucketName} = Db, DDocId, ViewName) ->
       NodeToVBuckets = node_vbuckets_dict(?b2l(BucketName)),
       Config = ns_config:get(),
  -    FullViewName = case DDocId of
  -    nil ->
  -        % _all_docs and other special builtin views
  -        ViewName;
  -    _ ->
  -        iolist_to_binary([BucketName, "%2F", "master", $/, DDocId, $/, ViewName])
  -    end,
       ViewSpecs = dict:fold(
           fun(Node, VBuckets, Acc) when Node =:= node() ->
  -            build_local_specs(BucketName, DDocId, ViewName, VBuckets) ++ Acc;
  +            build_local_specs(Req, BucketName,
  +                              DDocId, ViewName, VBuckets) ++ Acc;
           (Node, VBuckets, Acc) ->
  -           [build_remote_specs(Node, BucketName, FullViewName, VBuckets, Config) | Acc]
  +           [build_remote_specs(Req, Node, BucketName,
  +                               DDocId, ViewName, VBuckets, Config) | Acc]
           end, [], NodeToVBuckets),
       view_merge_params(Req, Db, DDocId, ViewName, ViewSpecs).
   
  
positive.code: vbucket_db_name(BucketName, VBucket) ->
      iolist_to_binary([BucketName, $/, integer_to_list(VBucket)]).
  
  
  build_local_specs(BucketName, DDocId, ViewName, VBuckets) ->
      DDocDbName = iolist_to_binary([BucketName, $/, "master"]),
      lists:map(fun(VBucket) ->
              #simple_view_spec{
  
negative.code:             }
          end, [<<"master">> | VBuckets]).
  
  build_remote_simple_specs(Node, BucketName, FullViewName, VBuckets, Config) ->
      MergeURL = iolist_to_binary(capi_utils:capi_url(Node, "/_view_merge", "127.0.0.1", Config)),
      Props = {[
          {<<"views">>,
  