summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-11-25 02:47:39 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-11-25 02:47:39 +0000
commite44d37584e07fccf739e317cc8b0a6905e2ced56 (patch)
treebb81b83b65f481d9e7cff5f30fe15c0ad352c123 /src
parenta7874fd49ee787779bac6ab0624f5baeaac6b4d9 (diff)
_all_docs_by_seq works with descending=true
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@720384 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_db.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index 0bf9d62e..fbea4541 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -186,6 +186,7 @@ db_req(#httpd{method='GET',path_parts=[_,<<"_all_docs_by_seq">>]}=Req, Db) ->
StartKey2 = case StartKey of
nil -> 0;
<<>> -> 100000000000;
+ {} -> 100000000000;
StartKey when is_integer(StartKey) -> StartKey
end,
{ok, FoldResult} = couch_db:enum_docs_since(Db, StartKey2, Dir,