You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2017/03/01 16:38:35 UTC

[37/50] fabric commit: updated refs/heads/2971-count-distinct to 5d18415

Use upgraded #mrargs{} instead of old one


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/863b8d96
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/863b8d96
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/863b8d96

Branch: refs/heads/2971-count-distinct
Commit: 863b8d9671d57c3125b954a3f63467a1c7c5f01f
Parents: 5b74e56
Author: ILYA Khlopotov <ii...@apache.org>
Authored: Thu Nov 17 09:44:31 2016 -0800
Committer: ILYA Khlopotov <ii...@apache.org>
Committed: Thu Nov 17 09:44:31 2016 -0800

----------------------------------------------------------------------
 src/fabric_rpc.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/863b8d96/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index b59c61e..d2ef8a9 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -94,9 +94,9 @@ changes(DbName, Options, StartVector, DbOptions) ->
 
 all_docs(DbName, Options, Args0) ->
     case fabric_util:upgrade_mrargs(Args0) of
-        #mrargs{keys=undefined} ->
+        #mrargs{keys=undefined} = Args1 ->
             set_io_priority(DbName, Options),
-            Args = fix_skip_and_limit(Args0),
+            Args = fix_skip_and_limit(Args1),
             {ok, Db} = get_or_create_db(DbName, Options),
             VAcc0 = #vacc{db=Db},
             couch_mrview:query_all_docs(Db, Args, fun view_cb/2, VAcc0)