Repository: incubator-blur
Updated Branches:
  refs/heads/master cc8e9806b -> 55a5d1ae8


Removing unsued map from base cache.  Overtime this could increase without 
limit.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/55a5d1ae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/55a5d1ae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/55a5d1ae

Branch: refs/heads/master
Commit: 55a5d1ae801bd9fd4d6c0b6cc1c7474e25f69afc
Parents: cc8e980
Author: Aaron McCurry <[email protected]>
Authored: Thu Mar 5 10:34:18 2015 -0500
Committer: Aaron McCurry <[email protected]>
Committed: Thu Mar 5 10:34:18 2015 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/blur/store/blockcache_v2/BaseCache.java  | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/55a5d1ae/blur-store/src/main/java/org/apache/blur/store/blockcache_v2/BaseCache.java
----------------------------------------------------------------------
diff --git 
a/blur-store/src/main/java/org/apache/blur/store/blockcache_v2/BaseCache.java 
b/blur-store/src/main/java/org/apache/blur/store/blockcache_v2/BaseCache.java
index 3457bbb..4d1e844 100644
--- 
a/blur-store/src/main/java/org/apache/blur/store/blockcache_v2/BaseCache.java
+++ 
b/blur-store/src/main/java/org/apache/blur/store/blockcache_v2/BaseCache.java
@@ -89,7 +89,6 @@ public class BaseCache extends Cache implements Closeable {
   private final Size _cacheBlockSize;
   private final Size _fileBufferSize;
   private final Map<FileIdKey, Long> _fileNameToId = new 
ConcurrentHashMap<FileIdKey, Long>();
-  private final Map<Long, FileIdKey> _oldFileNameIdMap = new 
ConcurrentHashMap<Long, FileIdKey>();
   private final AtomicLong _fileId = new AtomicLong();
   private final Quiet _quiet;
   private final Meter _hits;
@@ -197,7 +196,6 @@ public class BaseCache extends Cache implements Closeable {
     }
     long newId = _fileId.incrementAndGet();
     _fileNameToId.put(cachedFileName, newId);
-    _oldFileNameIdMap.put(newId, cachedFileName);
     return newId;
   }
 
@@ -221,7 +219,6 @@ public class BaseCache extends Cache implements Closeable {
               + currentFileId + "] for key [" + oldKey + "]");
         }
         _fileNameToId.put(newKey, fileId);
-        _oldFileNameIdMap.put(fileId, newKey);
         _fileNameToId.remove(oldKey);
       }
     } else {

Reply via email to