couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [1/2] fabric commit: updated refs/heads/master to 508122c
Date Thu, 06 Oct 2016 19:34:53 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master d68a00fde -> 508122c52


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/master
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) ->


Mime
View raw message