HBASE-3976 Disable block cache on compactions

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1134430 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2011-06-10 20:11:32 +00:00
parent 4979140c17
commit 09d3d6bed9
2 changed files with 4 additions and 2 deletions

View File

@ -117,6 +117,7 @@ Release 0.91.0 - Unreleased
(Alejandro Abdelnur)
HBASE-3971 Compression.java uses ClassLoader.getSystemClassLoader()
to load codec (Alejandro Abdelnur)
HBASE-3976 Disable block cache on compactions (Karthik Sankarachary)
IMPROVEMENTS
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)

View File

@ -1169,8 +1169,9 @@ public class Store implements HeapSize {
LOG.error("Failed move of compacted file " + compactedFile.getPath(), e);
return null;
}
result = new StoreFile(this.fs, p, blockcache, this.conf,
this.family.getBloomFilterType(), this.inMemory);
result = new StoreFile(this.fs, p,
false, // never cache during compaction
this.conf, this.family.getBloomFilterType(), this.inMemory);
result.createReader();
}
this.lock.writeLock().lock();