From 4673e17d749f45b3574c6d459ee9c75d8b292b1a Mon Sep 17 00:00:00 2001 From: Alex Chi Z Date: Mon, 2 Sep 2024 15:23:55 -0400 Subject: [PATCH] resolve comments Signed-off-by: Alex Chi Z --- pageserver/src/tenant/timeline.rs | 1 + pageserver/src/walredo/apply_neon.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/pageserver/src/tenant/timeline.rs b/pageserver/src/tenant/timeline.rs index 3ce83501ff..280aa83c5c 100644 --- a/pageserver/src/tenant/timeline.rs +++ b/pageserver/src/tenant/timeline.rs @@ -1947,6 +1947,7 @@ impl Timeline { .unwrap_or(self.conf.default_tenant_conf.lsn_lease_length_for_ts) } + /// TODO(chi): remove after retiring aux read path #[allow(dead_code)] pub(crate) fn get_switch_aux_file_policy(&self) -> AuxFilePolicy { let tenant_conf = self.tenant_conf.load(); diff --git a/pageserver/src/walredo/apply_neon.rs b/pageserver/src/walredo/apply_neon.rs index f6612ba9c5..155a1de0f1 100644 --- a/pageserver/src/walredo/apply_neon.rs +++ b/pageserver/src/walredo/apply_neon.rs @@ -243,6 +243,7 @@ pub(crate) fn apply_in_neon( clear, will_init, } => { + use bytes::BufMut; if *will_init { assert!(*clear, "init record must be clear to ensure correctness"); }