diff options
author | Paul Joseph Davis <davisp@apache.org> | 2009-07-08 01:33:00 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2009-07-08 01:33:00 +0000 |
commit | 02cb712e18ee5647517fc38b6aa0c188af090894 (patch) | |
tree | 952b52231a0266bbe9db53a3043fd2adcc68e0da /src/couchdb/couch_httpd_db.erl | |
parent | 6012a3374081d92eaade74b15f1c072aaa6ec09f (diff) |
Fixes COUCHDB-389
Provide an offset calculation for all view responses.
Thanks Brad Anderson.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@792013 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_db.erl')
-rw-r--r-- | src/couchdb/couch_httpd_db.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl index c00fd873..f5bebc20 100644 --- a/src/couchdb/couch_httpd_db.erl +++ b/src/couchdb/couch_httpd_db.erl @@ -407,7 +407,7 @@ db_req(#httpd{method='GET',path_parts=[_,<<"_all_docs_by_seq">>]}=Req, Db) -> end }, FoldlFun({{Seq, Id}, Json}, Offset, Acc) - end, {Limit, SkipCount, undefined, []}), + end, {Limit, SkipCount, undefined, [], nil}), couch_httpd_view:finish_view_fold(Req, TotalRowCount, {ok, FoldResult}) end); @@ -489,7 +489,7 @@ all_docs_view(Req, Db, Keys) -> StartId = if is_binary(StartKey) -> StartKey; true -> StartDocId end, - FoldAccInit = {Limit, SkipCount, undefined, []}, + FoldAccInit = {Limit, SkipCount, undefined, [], nil}, case Keys of nil -> |