mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-25 09:00:37 +00:00
fix formatting
This commit is contained in:
@@ -1268,12 +1268,8 @@ impl LayeredTimeline {
|
||||
|
||||
// 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.tenantid,
|
||||
self.timelineid,
|
||||
key,
|
||||
lsn,
|
||||
)?;
|
||||
let (lsn, read_guard) =
|
||||
cache.lookup_materialized_page(self.tenantid, self.timelineid, key, lsn)?;
|
||||
let img = Bytes::from(read_guard.to_vec());
|
||||
Some((lsn, img))
|
||||
}
|
||||
|
||||
@@ -52,8 +52,8 @@ use zenith_utils::{
|
||||
zid::{ZTenantId, ZTimelineId},
|
||||
};
|
||||
|
||||
use crate::layered_repository::writeback_ephemeral_file;
|
||||
use crate::config::PageServerConf;
|
||||
use crate::layered_repository::writeback_ephemeral_file;
|
||||
use crate::repository::Key;
|
||||
|
||||
static PAGE_CACHE: OnceCell<PageCache> = OnceCell::new();
|
||||
|
||||
Reference in New Issue
Block a user