pub fn notify_account_restore_from_snapshot(&self) {
        if self.accounts_update_notifier.is_none() {
            return;
        }

        let mut slots = self.storage.all_slots();
        let mut notified_accounts: HashSet<Pubkey> = HashSet::default();
        let mut notify_stats = AccountsDbPluginNotifyAtSnapshotRestoreStats::default();

        slots.sort_by(|a, b| b.cmp(a));
        for slot in slots {
            self.notify_accounts_in_slot(slot, &mut notified_accounts, &mut notify_stats);
        }

        let accounts_update_notifier = self.accounts_update_notifier.as_ref().unwrap();
        let notifier = &accounts_update_notifier.read().unwrap();
        notifier.notify_end_of_restore_from_snapshot();
        notify_stats.report();
    }
/// Notify the plugins of of account data when AccountsDb is restored from a snapshot. The data is streamed
/// in the reverse order of the slots so that an account is only streamed once. At a slot, if the accounts is updated
/// multiple times only the last write (with highest write_version) is notified.
Notify the plugins of of account data when AccountsDb is restored from a snapshot. The data is streamed
in the reverse order of the slots so that an account is only streamed once. At a slot, if the accounts is updated
multiple times only the last write (with highest write_version) is notified.
Notify the plugins of of account data when AccountsDb is restored from a snapshot . The data is streamed in the reverse order of the slots so that an account is only streamed once . At a slot if the accounts is updated multiple times only the last write ( with highest write_version ) is notified .
pub fn notify_account_restore_from_snapshot(&self) {
        if self.accounts_update_notifier.is_none() {
            return;
        }
        let mut slots = self.storage.all_slots();
        let mut notified_accounts: HashSet<Pubkey> = HashSet::default();
        let mut notify_stats = AccountsDbPluginNotifyAtSnapshotRestoreStats::default();
        slots.sort_by(|a, b| b.cmp(a));
        for slot in slots {
            self.notify_accounts_in_slot(slot, &mut notified_accounts, &mut notify_stats);
        }
        let accounts_update_notifier = self.accounts_update_notifier.as_ref().unwrap();
        let notifier = &accounts_update_notifier.read().unwrap();
        notifier.notify_end_of_restore_from_snapshot();
        notify_stats.report();
    }
pub fn notify_account_restore_from_snapshot ( & self ) { if self . accounts_update_notifier . is_none ( ) { return ; } let mut slots = self . storage . all_slots ( ) ; let mut notified_accounts : HashSet < Pubkey > = HashSet :: default ( ) ; let mut notify_stats = AccountsDbPluginNotifyAtSnapshotRestoreStats :: default ( ) ; slots . sort_by ( | a , b | b . cmp ( a ) ) ; for slot in slots { self . notify_accounts_in_slot ( slot , & mut notified_accounts , & mut notify_stats ) ; } let accounts_update_notifier = self . accounts_update_notifier . as_ref ( ) . unwrap ( ) ; let notifier = & accounts_update_notifier . read ( ) . unwrap ( ) ; notifier . notify_end_of_restore_from_snapshot ( ) ; notify_stats . report ( ) ; }
Notify the plugins of of account data when AccountsDb is restored from a snapshot.
Notify the plugins of of account data when AccountsDb is restored from a snapshot .
&self