Updated Branches: refs/heads/master 8944ebecb -> 4f0ec84aa
Fixed a problem with block that was loading files that were in use. Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/4f0ec84a Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/4f0ec84a Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/4f0ec84a Branch: refs/heads/master Commit: 4f0ec84aa0337afa8411a2869c0175c20b06d9da Parents: 8944ebe Author: Aaron McCurry <[email protected]> Authored: Wed Nov 20 09:46:24 2013 -0500 Committer: Aaron McCurry <[email protected]> Committed: Wed Nov 20 09:46:44 2013 -0500 ---------------------------------------------------------------------- .../main/java/org/apache/blur/store/blockcache_v2/BaseCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/4f0ec84a/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 6534e9a..ed95898 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 @@ -215,7 +215,7 @@ public class BaseCache extends Cache implements Closeable { Set<Long> validFileIds = new HashSet<Long>(_fileNameToId.values()); for (CacheKey key : _cacheMap.keySet()) { long fileId = key.getFileId(); - if (validFileIds.contains(fileId)) { + if (!validFileIds.contains(fileId)) { CacheValue remove = _cacheMap.remove(key); if (remove != null) { _removals.mark();
