diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-12 12:44:51 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-12 12:44:51 +0000 |
commit | c437600e2af0d9231a0d3b72d835f0188ff99ec9 (patch) | |
tree | 1f27a7eafa9cb114b1cb8d7ae4bbe0c767d8abb3 /src/couchdb/couch_auth_cache.erl | |
parent | 2b6e1ff181b0feae9ab1028c5b93c83d21548f38 (diff) |
Use lists:min/1 and lists:max/1 instead of erlang:min/2 and erlang:max/2. The later are not available in earlier OTP releases.
Closes COUCHDB-856.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1034380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_auth_cache.erl')
-rw-r--r-- | src/couchdb/couch_auth_cache.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_auth_cache.erl b/src/couchdb/couch_auth_cache.erl index 078bfcc1..0800d1ab 100644 --- a/src/couchdb/couch_auth_cache.erl +++ b/src/couchdb/couch_auth_cache.erl @@ -175,7 +175,7 @@ handle_call({new_max_cache_size, NewSize}, _From, State) -> end, NewState = State#state{ max_cache_size = NewSize, - cache_size = erlang:min(NewSize, State#state.cache_size) + cache_size = lists:min([NewSize, State#state.cache_size]) }, {reply, ok, NewState}; |