From 9c034017d8a56ba98de0b06ac64fce35f401868a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ko=C5=82aczkowski?= Date: Fri, 20 Dec 2024 14:03:16 +0100 Subject: [PATCH] Enable chunk cache on compressed index components --- .../org/apache/cassandra/io/storage/StorageProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/cassandra/io/storage/StorageProvider.java b/src/java/org/apache/cassandra/io/storage/StorageProvider.java index f3e5271c0c6c..51405e58b8db 100644 --- a/src/java/org/apache/cassandra/io/storage/StorageProvider.java +++ b/src/java/org/apache/cassandra/io/storage/StorageProvider.java @@ -331,7 +331,10 @@ public FileHandle.Builder fileHandleBuilderFor(IndexComponent.ForRead component) { builder = builder.adviseRandom(); } - return builder.mmapped(true); + + return builder.mmapped(true) + .withChunkCache(ChunkCache.instance); + } @Override