summaryrefslogtreecommitdiff
path: root/src/fabric_view_changes.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/fabric_view_changes.erl')
-rw-r--r--src/fabric_view_changes.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fabric_view_changes.erl b/src/fabric_view_changes.erl
index 39755a01..03f362a7 100644
--- a/src/fabric_view_changes.erl
+++ b/src/fabric_view_changes.erl
@@ -164,8 +164,12 @@ handle_message({complete, EndSeq}, Worker, State) ->
end
end.
-make_changes_args(Options) ->
- Options.
+make_changes_args(#changes_args{style=main_only, filter=undefined}=Args) ->
+ Args#changes_args{filter = fun couch_changes:main_only_filter/1};
+make_changes_args(#changes_args{style=all_docs, filter=undefined}=Args) ->
+ Args#changes_args{filter = fun couch_changes:all_docs_filter/1};
+make_changes_args(Args) ->
+ Args.
get_start_seq(_DbName, #changes_args{dir=fwd, since=Since}) ->
Since;