Fix Retransmit slamming the leader with its own blobs (#3938)

This commit is contained in:
Sagar Dhawan
2019-04-22 18:41:01 -07:00
committed by GitHub
parent 69e67d06a7
commit 43f7cd8149
6 changed files with 79 additions and 41 deletions

View File

@@ -176,7 +176,8 @@ pub fn cluster_info_retransmit() -> result::Result<()> {
assert!(done);
let b = SharedBlob::default();
b.write().unwrap().meta.size = 10;
ClusterInfo::retransmit(&c1, &b, &tn1, false)?;
let peers = c1.read().unwrap().retransmit_peers();
ClusterInfo::retransmit_to(&c1, &peers, &b, None, &tn1, false)?;
let res: Vec<_> = [tn1, tn2, tn3]
.into_par_iter()
.map(|s| {