ancient append vecs and cleaning dead slots (#27353)

cleanup old code
This commit is contained in:
Jeff Washington (jwash) 2022-08-26 10:13:41 -07:00 committed by GitHub
parent 14c60bae16
commit cdb699d812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -3021,10 +3021,7 @@ impl AccountsDb {
self.process_dead_slots(&dead_slots, purged_account_slots, purge_stats);
} else {
// not sure why this fails yet with ancient append vecs
if !self.ancient_append_vecs {
assert!(dead_slots.is_empty());
}
assert!(dead_slots.is_empty());
}
}
}
@ -7470,10 +7467,7 @@ impl AccountsDb {
.insert(account_info.offset());
}
if let Some(expected_slot) = expected_slot {
// not sure why this fails yet with ancient append vecs
if !self.ancient_append_vecs {
assert_eq!(*slot, expected_slot);
}
assert_eq!(*slot, expected_slot);
}
if let Some(store) = self
.storage