Remove loop (#8493)
This commit is contained in:
parent
8c07ba635e
commit
5f766cd20b
|
@ -242,7 +242,6 @@ impl ReplayStage {
|
||||||
Self::report_memory(&allocated, "replay_active_banks", start);
|
Self::report_memory(&allocated, "replay_active_banks", start);
|
||||||
|
|
||||||
let ancestors = Arc::new(bank_forks.read().unwrap().ancestors());
|
let ancestors = Arc::new(bank_forks.read().unwrap().ancestors());
|
||||||
loop {
|
|
||||||
let start = allocated.get();
|
let start = allocated.get();
|
||||||
let mut frozen_banks: Vec<_> = bank_forks
|
let mut frozen_banks: Vec<_> = bank_forks
|
||||||
.read()
|
.read()
|
||||||
|
@ -292,7 +291,6 @@ impl ReplayStage {
|
||||||
fork_stats.total_staked,
|
fork_stats.total_staked,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
let mut done = false;
|
|
||||||
let mut vote_bank_slot = None;
|
let mut vote_bank_slot = None;
|
||||||
let start = allocated.get();
|
let start = allocated.get();
|
||||||
if !is_locked_out && vote_threshold {
|
if !is_locked_out && vote_threshold {
|
||||||
|
@ -364,14 +362,8 @@ impl ReplayStage {
|
||||||
partition = false;
|
partition = false;
|
||||||
inc_new_counter_info!("replay_stage-partition_resolved", 1);
|
inc_new_counter_info!("replay_stage-partition_resolved", 1);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
done = true;
|
|
||||||
}
|
}
|
||||||
Self::report_memory(&allocated, "reset_bank", start);
|
Self::report_memory(&allocated, "reset_bank", start);
|
||||||
if done {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let start = allocated.get();
|
let start = allocated.get();
|
||||||
if !tpu_has_bank {
|
if !tpu_has_bank {
|
||||||
|
|
Loading…
Reference in New Issue