From ddbe45af0342ef90796e8da88bea0237c8ec2a05 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 8 May 2018 10:40:16 -0400 Subject: [PATCH] Final --- server/src/main/java/org/elasticsearch/common/cache/Cache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/common/cache/Cache.java b/server/src/main/java/org/elasticsearch/common/cache/Cache.java index fbc00c8dde35e..7521c310d0586 100644 --- a/server/src/main/java/org/elasticsearch/common/cache/Cache.java +++ b/server/src/main/java/org/elasticsearch/common/cache/Cache.java @@ -465,7 +465,7 @@ public void invalidate(K key) { CacheSegment segment = getCacheSegment(key); segment.remove(key, f -> { try { - final Entry entry = f.get(); + Entry entry = f.get(); try (ReleasableLock ignored = lruLock.acquire()) { delete(entry, RemovalNotification.RemovalReason.INVALIDATED); }