couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [1/3] fabric commit: updated refs/heads/master to 9f82e5b
Date Tue, 15 Nov 2016 00:21:27 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master f427ad0da -> 9f82e5b84


Upgrade #mrargs{} record


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

Branch: refs/heads/master
Commit: f14cd78590e650ae070e2f40dde101c1dde8ed83
Parents: f427ad0
Author: ILYA Khlopotov <iilyak@apache.org>
Authored: Mon Nov 14 13:17:09 2016 -0800
Committer: ILYA Khlopotov <iilyak@apache.org>
Committed: Mon Nov 14 16:06:31 2016 -0800

----------------------------------------------------------------------
 src/fabric_util.erl | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/f14cd785/src/fabric_util.erl
----------------------------------------------------------------------
diff --git a/src/fabric_util.erl b/src/fabric_util.erl
index e6dd86e..7e3f23e 100644
--- a/src/fabric_util.erl
+++ b/src/fabric_util.erl
@@ -329,8 +329,7 @@ upgrade_mrargs({mrargs,
         Skip,
         GroupLevel,
         Group,
-        Stable,
-        Update,
+        Stale,
         MultiGet,
         InclusiveEnd,
         IncludeDocs,
@@ -340,10 +339,10 @@ upgrade_mrargs({mrargs,
         Callback,
         Sorted,
         Extra}) ->
-    Stale = case {Stable, Update} of
-            {true, false} -> ok;
-            {true, lazy} -> update_after;
-            {_, _} -> false
+    {Stable, Update} = case Stale of
+        ok -> {true, false};
+        update_after -> {true, lazy};
+        _ -> {false, true}
     end,
     #mrargs{
         view_type = ViewType,
@@ -359,7 +358,8 @@ upgrade_mrargs({mrargs,
         skip = Skip,
         group_level = GroupLevel,
         group = Group,
-        stale = Stale,
+        stable = Stable,
+        update = Update,
         multi_get = MultiGet,
         inclusive_end = InclusiveEnd,
         include_docs = IncludeDocs,


Mime
View raw message