mirror of https://github.com/apache/lucene.git
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:
parent
4cc5cd56ec
commit
5aca9b9dab
|
@ -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
|
||||
|
|
|
@ -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>>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue