HBASE-22363 Remove hardcoded number of read cache block buckets
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
parent
2caf6db0c5
commit
d335c97081
|
@ -742,7 +742,7 @@ public class LruBlockCache implements FirstLevelBlockCache {
|
|||
bucketQueue.add(bucketMulti);
|
||||
bucketQueue.add(bucketMemory);
|
||||
|
||||
int remainingBuckets = 3;
|
||||
int remainingBuckets = bucketQueue.size();
|
||||
|
||||
BlockBucket bucket;
|
||||
while ((bucket = bucketQueue.poll()) != null) {
|
||||
|
|
|
@ -786,7 +786,7 @@ public class BucketCache implements BlockCache, HeapSize {
|
|||
bucketQueue.add(bucketMulti);
|
||||
bucketQueue.add(bucketMemory);
|
||||
|
||||
int remainingBuckets = 3;
|
||||
int remainingBuckets = bucketQueue.size();
|
||||
long bytesFreed = 0;
|
||||
|
||||
BucketEntryGroup bucketGroup;
|
||||
|
|
Loading…
Reference in New Issue