You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2015/09/02 20:31:04 UTC
[5/5] couchdb-couch-epi git commit: Remove support for
ignore_providers option
Remove support for ignore_providers option
COUCHDB-2796
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/commit/1d30ba1b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/tree/1d30ba1b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/diff/1d30ba1b
Branch: refs/heads/master
Commit: 1d30ba1b05ca48e0482ad2df7cb617ebb5b07c29
Parents: 36b2be5
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Wed Sep 2 10:03:44 2015 -0700
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Wed Sep 2 10:03:44 2015 -0700
----------------------------------------------------------------------
README.md | 1 -
src/couch_epi.erl | 1 -
src/couch_epi_functions_gen.erl | 4 ----
3 files changed, 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/1d30ba1b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index b3f2b5f..e6bddb6 100644
--- a/README.md
+++ b/README.md
@@ -107,7 +107,6 @@ There are multiple ways of doing the apply which is controlled by Opts
- ignore_errors - the call is wrapped into try/catch
- concurrent - spawn a new process for every service provider
- pipe - use output of one service provider as an input for the next one
- - ignore_providers - do not fail if there are no providers for the service are available
Notes:
http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/1d30ba1b/src/couch_epi.erl
----------------------------------------------------------------------
diff --git a/src/couch_epi.erl b/src/couch_epi.erl
index 7bd4ea1..7388ac2 100644
--- a/src/couch_epi.erl
+++ b/src/couch_epi.erl
@@ -46,7 +46,6 @@
-type apply_opt()
:: ignore_errors
- | ignore_providers
| concurrent
| pipe.
http://git-wip-us.apache.org/repos/asf/couchdb-couch-epi/blob/1d30ba1b/src/couch_epi_functions_gen.erl
----------------------------------------------------------------------
diff --git a/src/couch_epi_functions_gen.erl b/src/couch_epi_functions_gen.erl
index 8c63b9c..be04644 100644
--- a/src/couch_epi_functions_gen.erl
+++ b/src/couch_epi_functions_gen.erl
@@ -301,13 +301,9 @@ parse_opts([pipe|Rest], #opts{} = Acc) ->
parse_opts(Rest, Acc#opts{pipe = true});
parse_opts([concurrent|Rest], #opts{} = Acc) ->
parse_opts(Rest, Acc#opts{concurrent = true});
-parse_opts([ignore_providers|Rest], #opts{} = Acc) ->
- parse_opts(Rest, Acc#opts{ignore_providers = true});
parse_opts([], Acc) ->
Acc.
-providers(Handle, Function, Arity, #opts{ignore_providers = true}) ->
- Handle:providers(Function, Arity);
providers(Handle, Function, Arity, #opts{}) ->
Handle:providers(Function, Arity).