diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2020-01-23 09:43:43 -0500 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2020-01-23 12:00:07 -0500 |
commit | fb59a6167708d3aba3c22654481742c393f3a9ce (patch) | |
tree | 4dea7a79326277df08b076f317d5c3c5b5ba6950 | |
parent | 1d25b9d947a41f17214828f6c7e47cfe0a39d12e (diff) | |
download | couchdb-fb59a6167708d3aba3c22654481742c393f3a9ce.tar.gz |
Remove reduntant get_ring_opts call in in dreyfus_fabric_search
Previously we erroneously got ring opts before and after figuring out live
shards if some shards were not live there was a badmatch failure.
-rw-r--r-- | src/dreyfus/src/dreyfus_fabric_search.erl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dreyfus/src/dreyfus_fabric_search.erl b/src/dreyfus/src/dreyfus_fabric_search.erl index c43a98dea..8edaa385a 100644 --- a/src/dreyfus/src/dreyfus_fabric_search.erl +++ b/src/dreyfus/src/dreyfus_fabric_search.erl @@ -56,7 +56,6 @@ go(DbName, DDoc, IndexName, #index_query_args{}=QueryArgs) -> Shards = dreyfus_util:get_shards(DbName, QueryArgs), LiveNodes = [node() | nodes()], LiveShards = [S || #shard{node=Node} = S <- Shards, lists:member(Node, LiveNodes)], - RingOpts = dreyfus_util:get_ring_opts(QueryArgs, LiveShards), Bookmark1 = dreyfus_bookmark:add_missing_shards(Bookmark0, LiveShards), Counters0 = lists:flatmap(fun({#shard{name=Name, node=N} = Shard, After}) -> QueryArgs1 = dreyfus_util:export(QueryArgs#index_query_args{ |