serial insertion of bins into accounts index (#18469) (#18617)

(cherry picked from commit f5ff4b2058)

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2021-07-12 22:26:29 +00:00
committed by GitHub
parent 0670213365
commit cba97d576a

View File

@ -7,7 +7,6 @@ use crate::{
use bv::BitVec;
use log::*;
use ouroboros::self_referencing;
use rayon::prelude::*;
use solana_measure::measure::Measure;
use solana_sdk::{
clock::{BankId, Slot},
@ -1398,7 +1397,7 @@ impl<T: 'static + Clone + IsCached + ZeroLamport + std::marker::Sync + std::mark
let insertion_time = AtomicU64::new(0);
let duplicate_keys = binned
.into_par_iter()
.into_iter()
.map(|(pubkey_bin, items)| {
let mut _reclaims = SlotList::new();
let mut w_account_maps = self.account_maps[pubkey_bin].write().unwrap();