incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fixed a problem with block that was loading files that were in use.
Date Wed, 20 Nov 2013 14:46:50 GMT
Updated Branches:
  refs/heads/apache-blur-0.2 fe7f3915a -> fb2877f08


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/fb2877f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/fb2877f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/fb2877f0

Branch: refs/heads/apache-blur-0.2
Commit: fb2877f08889041e2f69cb61835f10ac3639e859
Parents: fe7f391
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Nov 20 09:46:24 2013 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Nov 20 09:46:24 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/fb2877f0/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();


Mime
View raw message