You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2014/07/16 00:03:35 UTC
fabric commit: updated refs/heads/fix-all-docs-skip-and-limit to
3650ec7
Repository: couchdb-fabric
Updated Branches:
refs/heads/fix-all-docs-skip-and-limit [created] 3650ec7c8
Fix skip and limit values for all docs queries
This extends commit 1b3c795 to include all docs in addition to map
views and reduce views.
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/3650ec7c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/3650ec7c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/3650ec7c
Branch: refs/heads/fix-all-docs-skip-and-limit
Commit: 3650ec7c87b59fb1c927e3c4e36da171d4bd77ed
Parents: 58380bb
Author: Russell Branca <ch...@apache.org>
Authored: Tue Jul 15 15:03:30 2014 -0700
Committer: Russell Branca <ch...@apache.org>
Committed: Tue Jul 15 15:03:30 2014 -0700
----------------------------------------------------------------------
src/fabric_rpc.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/3650ec7c/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 4781fb3..390d99e 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -48,7 +48,8 @@ changes(DbName, Options, StartSeq) ->
rexi:reply(Error)
end.
-all_docs(DbName, Options, #mrargs{keys=undefined} = Args) ->
+all_docs(DbName, Options, #mrargs{keys=undefined} = Args0) ->
+ Args = fix_skip_and_limit(Args0),
{ok, Db} = get_or_create_db(DbName, Options),
VAcc0 = #vacc{db=Db},
couch_mrview:query_all_docs(Db, Args, fun view_cb/2, VAcc0).