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:06 UTC

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

Replace "stale" with "stable" when picking shards

COUCHDB-3063


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

Branch: refs/heads/2971-count-distinct
Commit: e80a744a02cf6194df9afca8359c561e47034f18
Parents: ebea1b8
Author: Benjamin Anderson <b...@banjiewen.net>
Authored: Sun Jul 17 14:46:54 2016 -0700
Committer: Benjamin Anderson <b...@banjiewen.net>
Committed: Sun Jul 17 14:46:54 2016 -0700

----------------------------------------------------------------------
 src/fabric_view.erl | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/e80a744a/src/fabric_view.erl
----------------------------------------------------------------------
diff --git a/src/fabric_view.erl b/src/fabric_view.erl
index 50896cf..3db84e8 100644
--- a/src/fabric_view.erl
+++ b/src/fabric_view.erl
@@ -302,10 +302,9 @@ index_of(X, [X|_Rest], I) ->
 index_of(X, [_|Rest], I) ->
     index_of(X, Rest, I+1).
 
-get_shards(DbName, #mrargs{stale=Stale})
-  when Stale == ok orelse Stale == update_after ->
+get_shards(DbName, #mrargs{stable=true}) ->
     mem3:ushards(DbName);
-get_shards(DbName, #mrargs{stale=false}) ->
+get_shards(DbName, #mrargs{stable=false}) ->
     mem3:shards(DbName).
 
 get_shard_replacements(DbName, UsedShards0) ->