Add separate push queue to reduce push lock contention (#12713)

This commit is contained in:
sakridge
2020-10-13 18:10:25 -07:00
committed by GitHub
parent b8f03c9b0f
commit 1f1eb9f26e
6 changed files with 68 additions and 18 deletions

View File

@@ -566,6 +566,7 @@ mod tests {
// No account hashes for any trusted validators == "behind"
cluster_info.push_accounts_hashes(vec![(1000, Hash::default()), (900, Hash::default())]);
cluster_info.flush_push_queue();
assert_eq!(rm.health_check(), "behind");
override_health_check.store(true, Ordering::Relaxed);
assert_eq!(rm.health_check(), "ok");