couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject chttpd commit: updated refs/heads/master to 7683100
Date Thu, 08 Oct 2015 12:21:52 GMT
Repository: couchdb-chttpd
Updated Branches:
  refs/heads/master e18ceafe0 -> 76831000a


Call parse_revs

COUCHDB-2845


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

Branch: refs/heads/master
Commit: 76831000a6ea31313ea634d6b4ac2142e5f4a8e5
Parents: e18ceaf
Author: Robert Newson <rnewson@apache.org>
Authored: Thu Oct 8 13:14:02 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Oct 8 13:14:02 2015 +0100

----------------------------------------------------------------------
 src/chttpd_db.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/76831000/src/chttpd_db.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 8529083..552e5f8 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -1359,7 +1359,7 @@ parse_doc_query({Key, Value}, Args) ->
             Args#doc_query_args{open_revs=all};
         {"open_revs", RevsJsonStr} ->
             JsonArray = ?JSON_DECODE(RevsJsonStr),
-            Args#doc_query_args{open_revs=[couch_doc:parse_rev(Rev) || Rev <- JsonArray]};
+            Args#doc_query_args{open_revs=couch_doc:parse_revs(JsonArray)};
         {"latest", "true"} ->
             Options = [latest | Args#doc_query_args.options],
             Args#doc_query_args{options=Options};


Mime
View raw message