summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_view.erl
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-01-04 01:01:33 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-01-04 01:01:33 +0000
commite27fb8eaa628128f0ec8f1797805e92ec39ec6cb (patch)
tree2e91e8365302bc7da520076efca194d4ccafd3eb /src/couchdb/couch_httpd_view.erl
parent449ad331057100adc830016d08dac081077b3df2 (diff)
Rename _temp_views to _slow_views. Any clients who were using temp views are encouraged not to use slow views, and instead transition to design documents (or running the views on the client).
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@731144 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_view.erl')
-rw-r--r--src/couchdb/couch_httpd_view.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl
index 35203ced..3a25bd42 100644
--- a/src/couchdb/couch_httpd_view.erl
+++ b/src/couchdb/couch_httpd_view.erl
@@ -13,7 +13,7 @@
-module(couch_httpd_view).
-include("couch_db.hrl").
--export([handle_view_req/2,handle_temp_view_req/2]).
+-export([handle_view_req/2,handle_slow_view_req/2]).
-export([parse_view_query/1,parse_view_query/2,make_view_fold_fun/5,finish_view_fold/3]).
@@ -57,7 +57,7 @@ handle_view_req(#httpd{method='POST',path_parts=[_,_, Id, ViewName]}=Req, Db) ->
handle_view_req(Req, _Db) ->
send_method_not_allowed(Req, "GET,POST,HEAD").
-handle_temp_view_req(#httpd{method='POST'}=Req, Db) ->
+handle_slow_view_req(#httpd{method='POST'}=Req, Db) ->
QueryArgs = parse_view_query(Req),
case couch_httpd:primary_header_value(Req, "content-type") of
@@ -79,7 +79,7 @@ handle_temp_view_req(#httpd{method='POST'}=Req, Db) ->
output_reduce_view(Req, View, QueryArgs, Keys)
end;
-handle_temp_view_req(Req, _Db) ->
+handle_slow_view_req(Req, _Db) ->
send_method_not_allowed(Req, "POST").
output_map_view(Req, View, Db, QueryArgs, nil) ->