diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2019-06-10 14:33:12 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2019-06-10 14:50:51 -0500 |
commit | 4933c08efee96b894abfd463266e438f8e708703 (patch) | |
tree | 832c5f349298db3886990b9682faebf978e66339 | |
parent | 09f4489533ee1976c3c683301dc7e1332b02bafb (diff) | |
download | couchdb-4933c08efee96b894abfd463266e438f8e708703.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.erl | 3 |
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) -> |