Skip to content

Commit 9ca80b3

Browse files
committed
[core] Remove useless fileReadCount in CacheManager
1 parent 7ec86cb commit 9ca80b3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

paimon-common/src/main/java/org/apache/paimon/io/cache/CacheManager.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public class CacheManager {
4444
private final Cache dataCache;
4545
private final Cache indexCache;
4646

47-
private int fileReadCount;
48-
4947
@VisibleForTesting
5048
public CacheManager(MemorySize maxMemorySize) {
5149
this(Cache.CacheType.GUAVA, maxMemorySize, 0);
@@ -71,7 +69,6 @@ public CacheManager(
7169
this.indexCache =
7270
CacheBuilder.newBuilder(cacheType).maximumWeight(indexCacheSize).build();
7371
}
74-
this.fileReadCount = 0;
7572
LOG.info(
7673
"Initialize cache manager with data cache of {} and index cache of {}.",
7774
dataCacheSize,
@@ -94,7 +91,6 @@ public MemorySegment getPage(CacheKey key, CacheReader reader, CacheCallback cal
9491
cache.get(
9592
key,
9693
k -> {
97-
this.fileReadCount++;
9894
try {
9995
return new Cache.CacheValue(
10096
MemorySegment.wrap(reader.read(key)), callback);

0 commit comments

Comments
 (0)