Skip to content

Commit

Permalink
Update IndicesRequestCache.java
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Prakash <[email protected]>
  • Loading branch information
kiranprakash154 committed Apr 12, 2024
1 parent b6b5f2b commit 4c69187
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ BytesReference getOrCompute(
final Key key = new Key(((IndexShard) cacheEntity.getCacheIdentity()).shardId(), cacheKey, readerCacheKeyId);
Loader cacheLoader = new Loader(cacheEntity, loader);
BytesReference value = cache.computeIfAbsent(key, cacheLoader);
IndexShard indexShard = (IndexShard) cacheEntity.getCacheIdentity();
indexShard.refresh("test");
if (cacheLoader.isLoaded()) {
cacheEntity.onMiss();
// see if it's the first time we see this reader, and make sure to register a cleanup key
Expand Down

0 comments on commit 4c69187

Please sign in to comment.