Skip to content
Permalink
Browse files
Merge branch '559-disable-ddoc-cache'
  • Loading branch information
wohali committed Jun 2, 2017
2 parents c05488c + 80cc7e1 commit 1376e50b82571d98bb2cbd96f27d370b20b9fc24
Showing 1 changed file with 3 additions and 3 deletions.
@@ -326,11 +326,11 @@ next_timeout(St) ->

set_options(St, []) ->
St;
set_options(St, [{max_objects, N} | Rest]) when is_integer(N), N > 0 ->
set_options(St, [{max_objects, N} | Rest]) when is_integer(N), N >= 0 ->
set_options(St#st{max_objs=N}, Rest);
set_options(St, [{max_size, N} | Rest]) when is_integer(N), N > 0 ->
set_options(St, [{max_size, N} | Rest]) when is_integer(N), N >= 0 ->
set_options(St#st{max_size=N}, Rest);
set_options(St, [{max_lifetime, N} | Rest]) when is_integer(N), N > 0 ->
set_options(St, [{max_lifetime, N} | Rest]) when is_integer(N), N >= 0 ->
set_options(St#st{max_lifetime=N}, Rest);
set_options(_, [Opt | _]) ->
throw({invalid_option, Opt}).

0 comments on commit 1376e50

Please sign in to comment.