couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject fabric commit: updated refs/heads/fix-all-docs-skip-and-limit to 3650ec7
Date Tue, 15 Jul 2014 22:03:35 GMT
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 <chewbranca@apache.org>
Authored: Tue Jul 15 15:03:30 2014 -0700
Committer: Russell Branca <chewbranca@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).


Mime
View raw message