anchor.diff:      NodeToVBuckets.
   
   
  -view_merge_params(Req, #db{name = BucketName}, DDocId, ViewName) ->
  +view_merge_params(Req, #db{name = BucketName} = Db, DDocId, ViewName) ->
       NodeToVBuckets = node_vbuckets_dict(?b2l(BucketName)),
       Config = ns_config:get(),
       FullViewName = case DDocId of
  
positive.code:                 andalso capi_frontend:run_on_subset(Name) of
                  true ->
                      VBucket = capi_frontend:first_vbucket(Name),
                      capi_frontend:with_subdb(Db, VBucket, fun(RealDb) ->
                          couch_httpd_view:handle_view_req(Req, RealDb, DDoc)
                      end);
                  false ->
                      design_doc_view(Req, Db, DName, ViewName)
              end;
  
negative.code:     get_value/3
  ]).
  
  design_doc_view(Req, #db{name=BucketName} = Db, DesignName, ViewName, VBuckets) ->
      DDocId = <<"_design/", DesignName/binary>>,
      Specs = build_local_specs(BucketName, DDocId, ViewName, VBuckets),
      MergeParams = view_merge_params(Req, Db, DDocId, ViewName, Specs),
      couch_view_merger:query_view(Req, MergeParams).
  
  design_doc_view(Req, Db, DesignName, ViewName) ->
      DDocId = <<"_design/", DesignName/binary>>,
      MergeParams = view_merge_params(Req, Db, DDocId, ViewName),
  