From e44d37584e07fccf739e317cc8b0a6905e2ced56 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Tue, 25 Nov 2008 02:47:39 +0000 Subject: _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 --- src/couchdb/couch_httpd_db.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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, -- cgit v1.2.3