AcctIdx: bucket perf improvements (#20328)

This commit is contained in:
Jeff Washington (jwash)
2021-09-29 20:53:26 -05:00
committed by GitHub
parent 59112adac1
commit 5e05f12c48
3 changed files with 77 additions and 41 deletions

View File

@ -690,7 +690,7 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
continue; // marked dirty after we grabbed it above, so handle this the next time this bucket is flushed
}
flush_entries_updated_on_disk += 1;
disk.insert(&k, (&v.slot_list.read().unwrap(), v.ref_count()));
disk.insert(self.bin, &k, (&v.slot_list.read().unwrap(), v.ref_count()));
}
Self::update_time_stat(&self.stats().flush_update_us, m);
Self::update_stat(