SOLR-4603: CachingDirectoryFactory should use an IdentityHashMap for byDirectoryCache.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457638 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-03-18 04:38:12 +00:00
parent 4cc5cd56ec
commit 5aca9b9dab
2 changed files with 5 additions and 1 deletions

View File

@ -173,6 +173,9 @@ Other Changes
* SOLR-4596: DistributedQueue should ensure its full path exists in the constructor.
(Mark Miller)
* SOLR-4603: CachingDirectoryFactory should use an IdentityHashMap for
byDirectoryCache. (Mark Miller)
================== 4.2.1 ==================
Versions of Major Components

View File

@ -23,6 +23,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
@ -90,7 +91,7 @@ public abstract class CachingDirectoryFactory extends DirectoryFactory {
protected Map<String,CacheValue> byPathCache = new HashMap<String,CacheValue>();
protected Map<Directory,CacheValue> byDirectoryCache = new HashMap<Directory,CacheValue>();
protected Map<Directory,CacheValue> byDirectoryCache = new IdentityHashMap<Directory,CacheValue>();
protected Map<Directory,List<CloseListener>> closeListeners = new HashMap<Directory,List<CloseListener>>();