Removed assert on write_version ordering (#29530)

Removed assert on write_version ordering as snapshot created by earlier version
is not honoring that.
This commit is contained in:
Lijun Wang 2023-01-05 15:14:55 -08:00 committed by GitHub
parent a6bf68cec8
commit a6b492b2c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -89,16 +89,11 @@ impl AccountsDb {
let slot_stores = slot_stores.read().unwrap();
let mut accounts_to_stream: HashMap<Pubkey, StoredAccountMeta> = HashMap::default();
let mut measure_filter = Measure::start("accountsdb-plugin-filtering-accounts");
let mut previous_write_version = None;
for (_, storage_entry) in slot_stores.iter() {
let accounts = storage_entry.accounts.account_iter();
let mut account_len = 0;
accounts.for_each(|account| {
account_len += 1;
if let Some(previous_write_version) = previous_write_version {
assert!(previous_write_version < account.meta.write_version_obsolete);
}
previous_write_version = Some(account.meta.write_version_obsolete);
if notified_accounts.contains(&account.meta.pubkey) {
notify_stats.skipped_accounts += 1;
return;