mirror of https://github.com/apache/lucene.git
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:
parent
451f519e49
commit
9071230c73
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue