shares the lock on gossip when processing prune messages (#13339)

Processing prune messages acquires an exclusive lock on gossip:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/cluster_info.rs#L1824-L1825
This can be reduced to a shared lock if active-sets are changed to use
atomic bloom filters:
https://github.com/solana-labs/solana/blob/55b0428ff/core/src/crds_gossip_push.rs#L50
This commit is contained in:
behzad nouri
2020-11-05 15:42:00 +00:00
committed by GitHub
parent bc62313c66
commit 8f0796436a
6 changed files with 86 additions and 22 deletions

View File

@ -346,7 +346,7 @@ fn network_run_push(
network
.get(&from)
.map(|node| {
let mut node = node.lock().unwrap();
let node = node.lock().unwrap();
let destination = node.id;
let now = timestamp();
node.process_prune_msg(&to, &destination, &prune_keys, now, now)