couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject couch-mrview commit: updated refs/heads/2724-chunked-buffering to 8a27b4c
Date Tue, 21 Jul 2015 14:24:35 GMT
Repository: couchdb-couch-mrview
Updated Branches:
  refs/heads/2724-chunked-buffering bf495c9a1 -> 8a27b4c1a


Use a standard accessor for buffer config value


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/8a27b4c1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/8a27b4c1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/8a27b4c1

Branch: refs/heads/2724-chunked-buffering
Commit: 8a27b4c1aa3e6ee9dbe882e5f3d2c9043cc2e95c
Parents: bf495c9
Author: Adam Kocoloski <adam@cloudant.com>
Authored: Tue Jul 21 10:24:21 2015 -0400
Committer: Adam Kocoloski <adam@cloudant.com>
Committed: Tue Jul 21 10:24:21 2015 -0400

----------------------------------------------------------------------
 src/couch_mrview_http.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/8a27b4c1/src/couch_mrview_http.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_http.erl b/src/couch_mrview_http.erl
index d04ee94..ca94c13 100644
--- a/src/couch_mrview_http.erl
+++ b/src/couch_mrview_http.erl
@@ -229,7 +229,7 @@ do_all_docs_req(Req, Db, Keys, NS) ->
     end,
     Args = Args1#mrargs{preflight_fun=ETagFun},
     {ok, Resp} = couch_httpd:etag_maybe(Req, fun() ->
-        Max = config:get_integer("httpd", "chunked_response_buffer", 1490),
+        Max = chttpd:chunked_response_buffer_size(),
         VAcc0 = #vacc{db=Db, req=Req, threshold=Max},
         DbName = ?b2l(Db#db.name),
         UsersDbName = config:get("couch_httpd_auth",
@@ -275,7 +275,7 @@ design_doc_view(Req, Db, DDoc, ViewName, Keys) ->
     end,
     Args = Args0#mrargs{preflight_fun=ETagFun},
     {ok, Resp} = couch_httpd:etag_maybe(Req, fun() ->
-        Max = config:get_integer("httpd", "chunked_response_buffer", 1490),
+        Max = chttpd:chunked_response_buffer_size(),
         VAcc0 = #vacc{db=Db, req=Req, threshold=Max},
         couch_mrview:query_view(Db, DDoc, ViewName, Args, fun view_cb/2, VAcc0)
     end),
@@ -293,7 +293,7 @@ multi_query_view(Req, Db, DDoc, ViewName, Queries) ->
         couch_mrview_util:validate_args(QueryArg)
     end, Queries),
     {ok, Resp2} = couch_httpd:etag_maybe(Req, fun() ->
-        Max = config:get_integer("httpd", "chunked_response_buffer", 1490),
+        Max = chttpd:chunked_response_buffer_size(),
         VAcc0 = #vacc{db=Db, req=Req, prepend="\r\n", threshold=Max},
         %% TODO: proper calculation of etag
         Etag = couch_uuids:new(),


Mime
View raw message