couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [2/2] couch commit: updated refs/heads/add-filter-revs-limit to 9c5b8b7
Date Mon, 12 Oct 2015 21:36:01 GMT
Don't load query server options every iteration


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

Branch: refs/heads/add-filter-revs-limit
Commit: 9c5b8b7f49a9bb853c50dc6c90f8a3a9c6588a3f
Parents: e8c489f
Author: Russell Branca <chewbranca@apache.org>
Authored: Mon Oct 12 21:35:43 2015 +0000
Committer: Russell Branca <chewbranca@apache.org>
Committed: Mon Oct 12 21:35:43 2015 +0000

----------------------------------------------------------------------
 src/couch_query_servers.erl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/9c5b8b7f/src/couch_query_servers.erl
----------------------------------------------------------------------
diff --git a/src/couch_query_servers.erl b/src/couch_query_servers.erl
index d48b9df..c30a871 100644
--- a/src/couch_query_servers.erl
+++ b/src/couch_query_servers.erl
@@ -303,7 +303,8 @@ json_doc(Doc, Options) ->
     couch_doc:to_json_obj(Doc, Options).
 
 filter_view(DDoc, VName, Docs) ->
-    JsonDocs = [json_doc(Doc) || Doc <- Docs],
+    Options = json_doc_options(),
+    JsonDocs = [json_doc(Doc, Options) || Doc <- Docs],
     [true, Passes] = ddoc_prompt(DDoc, [<<"views">>, VName, <<"map">>],
[JsonDocs]),
     {ok, Passes}.
 
@@ -314,7 +315,8 @@ filter_docs(Req, Db, DDoc, FName, Docs) ->
         #httpd{} = HttpReq ->
             couch_httpd_external:json_req_obj(HttpReq, Db)
     end,
-    JsonDocs = [json_doc(Doc) || Doc <- Docs],
+    Options = json_doc_options(),
+    JsonDocs = [json_doc(Doc, Options) || Doc <- Docs],
     [true, Passes] = ddoc_prompt(DDoc, [<<"filters">>, FName],
         [JsonDocs, JsonReq]),
     {ok, Passes}.


Mime
View raw message