Skip to content

Commit 05d2bfc

Browse files
sschepensjakubdyszkiewicz
authored andcommitted
make lastWatchRequestTime volatile
Signed-off-by: Sebastian Schepens <[email protected]>
1 parent 6df9640 commit 05d2bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cache/src/main/java/io/envoyproxy/controlplane/cache/CacheStatusInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class CacheStatusInfo<T> implements StatusInfo<T> {
1717
private final T nodeGroup;
1818

1919
private final ConcurrentMap<Long, Watch> watches = new ConcurrentHashMap<>();
20-
private long lastWatchRequestTime;
20+
private volatile long lastWatchRequestTime;
2121

2222
public CacheStatusInfo(T nodeGroup) {
2323
this.nodeGroup = nodeGroup;

0 commit comments

Comments
 (0)