Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use #view_query_args.extra instead of adding a new field

BugzID: 13177
  • Loading branch information...
commit eef923150cbd3bbff258e66ffb7e843b331c7646 1 parent ec95dd3
@kocolosk kocolosk authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/fabric_rpc.erl
View
6 src/fabric_rpc.erl
@@ -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
@@ -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
},
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.