Skip to content

Commit 365844f

Browse files
authored
initialize cluster slots with the current root bank (#7314)
1 parent 1017b9a commit 365844f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/cluster_slots_service.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ impl ClusterSlotsService {
8383
let mut cluster_slots_service_timing = ClusterSlotsServiceTiming::default();
8484
let mut last_stats = Instant::now();
8585
let mut epoch_specs = EpochSpecs::from(bank_forks.clone());
86+
87+
// initialize cluster slots with the current root bank
88+
let root_bank = bank_forks.read().unwrap().root_bank();
89+
cluster_slots.update(&root_bank, &cluster_info);
90+
8691
while !exit.load(Ordering::Relaxed) {
8792
let slots = match cluster_slots_update_receiver.recv_timeout(Duration::from_millis(200))
8893
{

0 commit comments

Comments
 (0)