diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2017-07-24 11:22:11 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2017-07-24 11:22:11 -0500 |
commit | 4d545714e504bb7d8a196265ff8434e5eb95e456 (patch) | |
tree | 5a83cb3563f2948573f217432cad31bd967482e8 | |
parent | b0e35a2e6689e1984b8c84c890fa4d005b72ef59 (diff) | |
download | couchdb-4d545714e504bb7d8a196265ff8434e5eb95e456.tar.gz |
FIXUP: Reorder clauses for readability
-rw-r--r-- | src/ddoc_cache/src/ddoc_cache_lru.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ddoc_cache/src/ddoc_cache_lru.erl b/src/ddoc_cache/src/ddoc_cache_lru.erl index 17fa14bfd..3300f3d4c 100644 --- a/src/ddoc_cache/src/ddoc_cache_lru.erl +++ b/src/ddoc_cache/src/ddoc_cache_lru.erl @@ -258,11 +258,11 @@ trim(St, MaxSize) -> couch_log:error("SIZE: ~b :: ~b~n", [CurSize, MaxSize]), if CurSize =< MaxSize -> ok; true -> case ets:first(?LRU) of - '$end_of_table' -> - full; {_Ts, Key, Pid} -> remove_entry(St, Key, Pid), - trim(St, MaxSize) + trim(St, MaxSize); + '$end_of_table' -> + full end end. |