summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_auth_cache.erl
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-11-12 12:45:44 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-11-12 12:45:44 +0000
commitc65b3efe303bd5a5321afa29424569357506fb8f (patch)
treee6b6fc355fe88536ea1377a84161b1ef367faa00 /src/couchdb/couch_auth_cache.erl
parentddcf3092bf4b31e1698240c9086c56ccc43e9877 (diff)
Merged revision 1034380 from trunk:
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/branches/1.0.x@1034381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_auth_cache.erl')
-rw-r--r--src/couchdb/couch_auth_cache.erl2
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};