Skip to content

Commit

Permalink
removed more dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Alfonsi <[email protected]>
  • Loading branch information
Peter Alfonsi committed Nov 22, 2023
1 parent 100ca7b commit c415ec8
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,7 @@ private EhCacheDiskCachingTier(Builder<K, V> builder) {
close();
cacheManager = buildCacheManager();
this.cache = buildCache(Duration.ofMillis(expireAfterAccess.getMillis()), builder);

// IndicesRequestCache gets 1%, of which we allocate 5% to the keystore = 0.05%
// TODO: how do we change this automatically based on INDICES_CACHE_QUERY_SIZE setting?
//Setting<ByteSizeValue> keystoreSizeSetting = Setting.memorySizeSetting(builder.settingPrefix + ".tiered.disk.keystore_size", "0.05%");
//this.keystore = new RBMIntKeyLookupStore(keystoreSizeSetting.get(this.settings).getBytes());

long keystoreMaxWeight = builder.keystoreMaxWeightInBytes;
this.keystore = new RBMIntKeyLookupStore(keystoreMaxWeight);
}
Expand Down

0 comments on commit c415ec8

Please sign in to comment.