Skip to content

Commit 7dca476

Browse files
committed
reverting changes to Refactor CacheStats to Stats across all relevant classes and tests as it's pulled out into elastic#131784
1 parent 380d7f9 commit 7dca476

File tree

1 file changed

+4
-4
lines changed
  • x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich

1 file changed

+4
-4
lines changed

x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichCache.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ void put(CacheKey cacheKey, CacheValue cacheValue) {
137137
}
138138

139139
public EnrichStatsAction.Response.CacheStats getStats(String localNodeId) {
140-
Cache.CacheStats stats = cache.stats();
140+
Cache.CacheStats cacheStats = cache.stats();
141141
return new EnrichStatsAction.Response.CacheStats(
142142
localNodeId,
143143
cache.count(),
144-
stats.getHits(),
145-
stats.getMisses(),
146-
stats.getEvictions(),
144+
cacheStats.getHits(),
145+
cacheStats.getMisses(),
146+
cacheStats.getEvictions(),
147147
TimeValue.nsecToMSec(hitsTimeInNanos.get()),
148148
TimeValue.nsecToMSec(missesTimeInNanos.get()),
149149
sizeInBytes.get()

0 commit comments

Comments
 (0)