HBASE-22363 Remove hardcoded number of read cache block buckets

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
Biju Nair 2019-05-05 00:10:28 -04:00 committed by Peter Somogyi
parent 586e177ded
commit 9a4a8ef274
2 changed files with 2 additions and 2 deletions

View File

@ -742,7 +742,7 @@ public class LruBlockCache implements FirstLevelBlockCache {
bucketQueue.add(bucketMulti); bucketQueue.add(bucketMulti);
bucketQueue.add(bucketMemory); bucketQueue.add(bucketMemory);
int remainingBuckets = 3; int remainingBuckets = bucketQueue.size();
BlockBucket bucket; BlockBucket bucket;
while ((bucket = bucketQueue.poll()) != null) { while ((bucket = bucketQueue.poll()) != null) {

View File

@ -786,7 +786,7 @@ public class BucketCache implements BlockCache, HeapSize {
bucketQueue.add(bucketMulti); bucketQueue.add(bucketMulti);
bucketQueue.add(bucketMemory); bucketQueue.add(bucketMemory);
int remainingBuckets = 3; int remainingBuckets = bucketQueue.size();
long bytesFreed = 0; long bytesFreed = 0;
BucketEntryGroup bucketGroup; BucketEntryGroup bucketGroup;