Skip to content

Commit

Permalink
Removed assert on write_version ordering (solana-labs#29530)
Browse files Browse the repository at this point in the history
Removed assert on write_version ordering as snapshot created by earlier version
is not honoring that.
  • Loading branch information
lijunwangs authored and gnapoli23 committed Jan 10, 2023
1 parent db26895 commit 46a3d3c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions runtime/src/accounts_db/geyser_plugin_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 46a3d3c

Please sign in to comment.