SOLR-667: fix incorrect put() fix

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@709189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-10-30 16:11:20 +00:00
parent 451f519e49
commit 9071230c73
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class ConcurrentLRUCache {
if (val == null) return null;
CacheEntry e = new CacheEntry(key, val, stats.accessCounter.incrementAndGet());
CacheEntry oldCacheEntry = map.put(key, e);
if (oldCacheEntry != null) {
if (oldCacheEntry == null) {
stats.size.incrementAndGet();
}
if (islive) {