don't mark ancient append vecs as dirty wrt clean (#27312)

This commit is contained in:
Jeff Washington (jwash) 2022-08-23 09:18:48 -05:00 committed by GitHub
parent 40ffb50cde
commit 326f43d644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -6739,8 +6739,13 @@ impl AccountsDb {
for (slot, storages) in storages.iter_range(..in_epoch_range_start) {
if let Some(storages) = storages {
storages.iter().for_each(|store| {
self.dirty_stores
.insert((slot, store.append_vec_id()), store.clone());
if !is_ancient(&store.accounts) {
// ancient stores are managed separately - we expect them to be old and keeping accounts
// We can expect the normal processes will keep them cleaned.
// If we included them here then ALL accounts in ALL ancient append vecs will be visited by clean each time.
self.dirty_stores
.insert((slot, store.append_vec_id()), store.clone());
}
});
}
}