diff --git a/accounts-db/src/ancient_append_vecs.rs b/accounts-db/src/ancient_append_vecs.rs index a1159d75d4c5ac..99f948b939d0bd 100644 --- a/accounts-db/src/ancient_append_vecs.rs +++ b/accounts-db/src/ancient_append_vecs.rs @@ -968,7 +968,9 @@ pub const fn get_ancient_append_vec_capacity() -> u64 { pub fn is_ancient(storage: &AccountsFile) -> bool { match storage { AccountsFile::AppendVec(storage) => storage.capacity() >= get_ancient_append_vec_capacity(), - AccountsFile::TieredStorage(ts) => ts.file_size() >= get_ancient_append_vec_capacity(), + AccountsFile::TieredStorage(ts) => { + ts.file_size().unwrap_or(0) >= get_ancient_append_vec_capacity() + } } }