Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Use #view_query_args.extra instead of adding a new field
Browse files Browse the repository at this point in the history
BugzID: 13177
  • Loading branch information
kocolosk committed Jun 5, 2012
1 parent ec95dd3 commit eef9231
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fabric_rpc.erl
Expand Up @@ -50,7 +50,6 @@ all_docs(DbName, #view_query_args{keys=nil} = QueryArgs) ->
limit = Limit,
skip = Skip,
include_docs = IncludeDocs,
conflicts = Conflicts,
direction = Dir,
inclusive_end = Inclusive,
extra = Extra
Expand All @@ -60,7 +59,7 @@ all_docs(DbName, #view_query_args{keys=nil} = QueryArgs) ->
Acc0 = #view_acc{
db = Db,
include_docs = IncludeDocs,
conflicts = Conflicts,
conflicts = proplists:get_value(conflicts, Extra, false),
limit = Limit+Skip,
total_rows = Total
},
Expand Down Expand Up @@ -99,7 +98,6 @@ map_view(DbName, DDoc, ViewName, QueryArgs) ->
skip = Skip,
keys = Keys,
include_docs = IncludeDocs,
conflicts = Conflicts,
stale = Stale,
view_type = ViewType,
extra = Extra
Expand All @@ -116,7 +114,7 @@ map_view(DbName, DDoc, ViewName, QueryArgs) ->
Acc0 = #view_acc{
db = Db,
include_docs = IncludeDocs,
conflicts = Conflicts,
conflicts = proplists:get_value(conflicts, Extra, false),
limit = Limit+Skip,
total_rows = Total,
reduce_fun = fun couch_view:reduce_to_count/1
Expand Down

0 comments on commit eef9231

Please sign in to comment.