summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-06-25 20:52:17 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-06-25 20:52:17 -0400
commit5f23313f8424fc5d8f54b2550c0d3a290de21c7f (patch)
tree475ab7ee627d5cda37bf4abb846a1477b609417d
parent6dcb12c20d0dc06e4a536674da41cde77ea3965f (diff)
filter should already be set outside of fabric
-rw-r--r--src/fabric_rpc.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index 4b6e4e62..04aebfd1 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -48,14 +48,10 @@ all_docs(DbName, #view_query_args{keys=nil} = QueryArgs) ->
{ok, _, Acc} = couch_db:enum_docs(Db, fun view_fold/3, Acc0, Options),
final_response(Total, Acc#view_acc.offset).
-changes(DbName, Args0, StartSeq) ->
- #changes_args{style=Style, dir=Dir} = Args0,
+changes(DbName, Args, StartSeq) ->
+ #changes_args{style=Style, dir=Dir} = Args,
case couch_db:open(DbName, []) of
{ok, Db} ->
- % couch code has a MochiReq for 2nd argument, ick
- Args = Args0#changes_args{
- filter = couch_changes:make_filter_fun(Args0, nil, Db)
- },
Enum = fun changes_enumerator/2,
Opts = [{dir,Dir}],
Acc0 = {Db, StartSeq, Args},