You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2017/06/02 20:33:24 UTC
[couchdb] 01/02: Allow ddoc_cache to be fully disabled
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 95b2609619cf88cf1d0ea87e72777bfb6759d845
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Fri Jun 2 03:07:23 2017 -0400
Allow ddoc_cache to be fully disabled
---
src/ddoc_cache/src/ddoc_cache_sup.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ddoc_cache/src/ddoc_cache_sup.erl b/src/ddoc_cache/src/ddoc_cache_sup.erl
index 5ffd7e6..85e90b3 100644
--- a/src/ddoc_cache/src/ddoc_cache_sup.erl
+++ b/src/ddoc_cache/src/ddoc_cache_sup.erl
@@ -48,19 +48,19 @@ init([]) ->
lru_opts() ->
case application:get_env(ddoc_cache, max_objects) of
- {ok, MxObjs} when is_integer(MxObjs), MxObjs > 0 ->
+ {ok, MxObjs} when is_integer(MxObjs), MxObjs >= 0 ->
[{max_objects, MxObjs}];
_ ->
[]
end ++
case application:get_env(ddoc_cache, max_size) of
- {ok, MxSize} when is_integer(MxSize), MxSize > 0 ->
+ {ok, MxSize} when is_integer(MxSize), MxSize >= 0 ->
[{max_size, MxSize}];
_ ->
[]
end ++
case application:get_env(ddoc_cache, max_lifetime) of
- {ok, MxLT} when is_integer(MxLT), MxLT > 0 ->
+ {ok, MxLT} when is_integer(MxLT), MxLT >= 0 ->
[{max_lifetime, MxLT}];
_ ->
[]
--
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <co...@couchdb.apache.org>.