summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2020-03-11 11:27:48 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2020-03-11 11:34:29 -0400
commit258ec665f5f1bcadcd8b2e87deaef72960a9684d (patch)
tree26784d110d40343e51a59ca348630fa77756112c
parent1457c2826eceed7cd6244e1130c6f9c499fd2bb3 (diff)
downloadcouchdb-258ec665f5f1bcadcd8b2e87deaef72960a9684d.tar.gz
Fix _changes with a _view filter
Use `fabric2_db:is_clustered/1` instead of `couch_db:is_clustered`
-rw-r--r--src/chttpd/src/chttpd_changes.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_changes.erl b/src/chttpd/src/chttpd_changes.erl
index 3a13f81e4..45c7d57b9 100644
--- a/src/chttpd/src/chttpd_changes.erl
+++ b/src/chttpd/src/chttpd_changes.erl
@@ -169,7 +169,7 @@ configure_filter("_view", Style, Req, Db) ->
[DName, VName] ->
{ok, DDoc} = open_ddoc(Db, <<"_design/", DName/binary>>),
check_member_exists(DDoc, [<<"views">>, VName]),
- case couch_db:is_clustered(Db) of
+ case fabric2_db:is_clustered(Db) of
true ->
DIR = fabric_util:doc_id_and_rev(DDoc),
{fetch, view, Style, DIR, VName};