You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/06/10 19:52:21 UTC
[couchdb] 03/06: Allow for previously configured filters
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch prototype/fdb-layer
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 4933c08efee96b894abfd463266e438f8e708703
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Jun 10 14:33:12 2019 -0500
Allow for previously configured filters
The older chttpd/fabric split configured filters as one step in the
coordinator instead of within each RPC worker.
---
src/chttpd/src/chttpd_changes.erl | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/chttpd/src/chttpd_changes.erl b/src/chttpd/src/chttpd_changes.erl
index 620f68d..d27bbad 100644
--- a/src/chttpd/src/chttpd_changes.erl
+++ b/src/chttpd/src/chttpd_changes.erl
@@ -197,6 +197,9 @@ get_callback_acc(Callback) when is_function(Callback, 1) ->
{fun(Ev, _) -> Callback(Ev) end, ok}.
+configure_filter(Filter, _Style, _Req, _Db) when is_tuple(Filter) ->
+ % Filter has already been configured
+ Filter;
configure_filter("_doc_ids", Style, Req, _Db) ->
{doc_ids, Style, get_doc_ids(Req)};
configure_filter("_selector", Style, Req, _Db) ->