anchor.diff:      db_attachment_req(Req, Db, DocId, FileNameParts).
   
   all_docs_view(Req, Db, Keys) ->
  +    all_docs_view(Req, Db, Keys, undefined).
  +all_docs_view(Req, Db, Keys, NS) ->
       Args0 = couch_mrview_http:parse_params(Req, Keys),
  +    Args1 = set_namespace(NS, Args0),
       ETagFun = fun(Sig, Acc0) ->
           couch_mrview_http:check_view_etag(Sig, Acc0, Req)
       end,
  -    Args = Args0#mrargs{preflight_fun=ETagFun},
  +    Args = Args1#mrargs{preflight_fun=ETagFun},
       Options = [{user_ctx, Req#httpd.user_ctx}],
       {ok, Resp} = couch_httpd:etag_maybe(Req, fun() ->
           VAcc0 = #vacc{db=Db, req=Req},
  
positive.code: db_req(#httpd{path_parts=[_,<<"_all_docs">>]}=Req, _Db) ->
      send_method_not_allowed(Req, "GET,HEAD,POST");
  
  db_req(#httpd{method='POST',path_parts=[_,<<"_missing_revs">>]}=Req, Db) ->
      {JsonDocIdRevs} = chttpd:json_body_obj(Req),
      {ok, Results} = fabric:get_missing_revs(Db, JsonDocIdRevs),
  
negative.code:             end
      end.
  
  set_namespace(NS, #mrargs{extra = Extra} = Args) ->
      Args#mrargs{extra = [{namespace, NS} | Extra]}.
  
  -ifdef(TEST).
  -include_lib("eunit/include/eunit.hrl").
  
  