summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2019-06-10 14:33:12 -0500
committerPaul J. Davis <paul.joseph.davis@gmail.com>2019-07-31 11:55:30 -0500
commitf7a790ea72dbe5c89658de93816e66a5ed3ec10d (patch)
tree4bf3e5b3fa4e60b790b27c189238e1160c3055a3
parentbc8007b7018054733644805cdc430983bc2f4e73 (diff)
downloadcouchdb-f7a790ea72dbe5c89658de93816e66a5ed3ec10d.tar.gz
Allow for previously configured filters
The older chttpd/fabric split configured filters as one step in the coordinator instead of within each RPC worker.
-rw-r--r--src/chttpd/src/chttpd_changes.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chttpd/src/chttpd_changes.erl b/src/chttpd/src/chttpd_changes.erl
index 620f68de6..d27bbade4 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) ->