From 5953ea12f6e930209e7f1c8a44cc00115055c474 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 22 Mar 2024 21:27:52 +0000 Subject: [PATCH] DO NOT MERGE: diable materialized page cache for benchmarking --- pageserver/src/tenant/timeline.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pageserver/src/tenant/timeline.rs b/pageserver/src/tenant/timeline.rs index 7523130f23..12891a84a6 100644 --- a/pageserver/src/tenant/timeline.rs +++ b/pageserver/src/tenant/timeline.rs @@ -2855,15 +2855,7 @@ impl Timeline { lsn: Lsn, ctx: &RequestContext, ) -> Option<(Lsn, Bytes)> { - let cache = page_cache::get(); - - // FIXME: It's pointless to check the cache for things that are not 8kB pages. - // We should look at the key to determine if it's a cacheable object - let (lsn, read_guard) = cache - .lookup_materialized_page(self.tenant_shard_id, self.timeline_id, key, lsn, ctx) - .await?; - let img = Bytes::from(read_guard.to_vec()); - Some((lsn, img)) + return None; } async fn get_ready_ancestor_timeline(