Skip to content

Commit

Permalink
allow configurable timeouts for _view and _search
Browse files Browse the repository at this point in the history
  • Loading branch information
rnewson committed Apr 5, 2023
1 parent 31e3f64 commit 61508c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/dreyfus/src/dreyfus_fabric_search.erl
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ go(DbName, DDoc, IndexName, QueryArgs, Counters, Bookmark, RingOpts) ->
#shard.ref,
fun handle_message/3,
State,
infinity,
1000 * 60 * 60
fabric_util:timeout("search", infinity),
fabric_util:timeout("search_permsg", 1000 * 60 * 60)
)
of
{ok, Result} ->
Expand Down
2 changes: 1 addition & 1 deletion src/fabric/src/fabric_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
remove_down_workers/2, remove_down_workers/3,
doc_id_and_rev/1
]).
-export([request_timeout/0, attachments_timeout/0, all_docs_timeout/0, view_timeout/1]).
-export([request_timeout/0, attachments_timeout/0, all_docs_timeout/0, view_timeout/1, timeout/2]).
-export([log_timeout/2, remove_done_workers/2]).
-export([is_users_db/1, is_replicator_db/1]).
-export([open_cluster_db/1, open_cluster_db/2]).
Expand Down
2 changes: 1 addition & 1 deletion src/fabric/src/fabric_view_map.erl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ go(DbName, Workers, {map, View, _}, Args, Callback, Acc0) ->
fun handle_message/3,
State,
fabric_util:view_timeout(Args),
1000 * 60 * 60
fabric_util:timeout("view_permsg", 1000 * 60 * 60)
)
of
{ok, NewState} ->
Expand Down
2 changes: 1 addition & 1 deletion src/fabric/src/fabric_view_reduce.erl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ go2(DbName, Workers, {red, {_, Lang, View}, _} = VInfo, Args, Callback, Acc0) ->
fun handle_message/3,
State,
fabric_util:view_timeout(Args),
1000 * 60 * 60
fabric_util:timeout("view_permsg", 1000 * 60 * 60)
)
of
{ok, NewState} ->
Expand Down

0 comments on commit 61508c8

Please sign in to comment.