From 9ca032ae9d2ad1622cb3916be710d41a9cc36442 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Thu, 8 Oct 2015 12:42:36 -0400 Subject: [PATCH] Enforce strict eviction semantics --- core/src/main/java/org/elasticsearch/common/cache/Cache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/common/cache/Cache.java b/core/src/main/java/org/elasticsearch/common/cache/Cache.java index c14a71072b4..004f5388557 100644 --- a/core/src/main/java/org/elasticsearch/common/cache/Cache.java +++ b/core/src/main/java/org/elasticsearch/common/cache/Cache.java @@ -145,7 +145,7 @@ public class Cache { final K key; final V value; long writeTime; - long accessTime; + volatile long accessTime; Entry before; Entry after; State state = State.NEW;