Really start caching by fixing swapped CAS... (#18842)
This commit is contained in:
parent
5cabb5bb11
commit
611af87fdb
|
@ -344,7 +344,7 @@ impl StandardBroadcastRun {
|
|||
if now - last > BROADCAST_PEER_UPDATE_INTERVAL_MS
|
||||
&& self
|
||||
.last_peer_update
|
||||
.compare_and_swap(now, last, Ordering::Relaxed)
|
||||
.compare_and_swap(last, now, Ordering::Relaxed)
|
||||
== last
|
||||
{
|
||||
*self.cluster_nodes.write().unwrap() = ClusterNodes::<BroadcastStage>::new(
|
||||
|
|
Loading…
Reference in New Issue