Skip to content

Commit

Permalink
HBASE-22890 add comments for why check first and then setLength()
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoBQ committed Sep 20, 2019
1 parent 9c3dded commit 6c8dcea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ public BucketCache(String ioEngineName, long capacity, int blockSize, int[] buck
this.ramCache = new ConcurrentHashMap<BlockCacheKey, RAMQueueEntry>();

this.backingMap = new ConcurrentHashMap<BlockCacheKey, BucketEntry>((int) blockNumCapacity);

if (ioEngine.isPersistent() && persistencePath != null) {
try {
retrieveFromFile(bucketSizes);
Expand Down

0 comments on commit 6c8dcea

Please sign in to comment.