rename config

This commit is contained in:
Xuesen Liang 2022-05-11 12:09:44 +08:00
parent 356619e374
commit 169ad7b569
1 changed files with 5 additions and 3 deletions

View File

@ -85,8 +85,9 @@ public final class BlockCacheFactory {
private static final String EXTERNAL_BLOCKCACHE_CLASS_KEY = "hbase.blockcache.external.class"; private static final String EXTERNAL_BLOCKCACHE_CLASS_KEY = "hbase.blockcache.external.class";
private static final String BLOCKCACHE_VICTIM_HANDLER_KEY = "hbase.blockcache.victim.handler"; private static final String BLOCKCACHE_VICTIM_HANDLER_ENABLED_KEY =
private static final boolean BLOCKCACHE_VICTIM_HANDLER_DEFAULT = false; "hbase.blockcache.victim.handler.enabled";
private static final boolean BLOCKCACHE_VICTIM_HANDLER_ENABLED_DEFAULT = false;
/** /**
* @deprecated use {@link BlockCacheFactory#BLOCKCACHE_BLOCKSIZE_KEY} instead. * @deprecated use {@link BlockCacheFactory#BLOCKCACHE_BLOCKSIZE_KEY} instead.
@ -121,7 +122,8 @@ public final class BlockCacheFactory {
return l1Cache; return l1Cache;
} }
if (conf.getBoolean(BLOCKCACHE_VICTIM_HANDLER_KEY, BLOCKCACHE_VICTIM_HANDLER_DEFAULT)) { if (conf.getBoolean(BLOCKCACHE_VICTIM_HANDLER_ENABLED_KEY,
BLOCKCACHE_VICTIM_HANDLER_ENABLED_DEFAULT)) {
return new InclusiveCombinedBlockCache(l1Cache, bucketCache); return new InclusiveCombinedBlockCache(l1Cache, bucketCache);
} else { } else {
return new CombinedBlockCache(l1Cache, bucketCache); return new CombinedBlockCache(l1Cache, bucketCache);