resolve comments

Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
Alex Chi Z
2024-09-02 15:23:55 -04:00
parent c201759864
commit 4673e17d74
2 changed files with 2 additions and 0 deletions

View File

@@ -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();

View File

@@ -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");
}