Remove loop (#8495)
This commit is contained in:
@ -252,7 +252,6 @@ impl ReplayStage {
|
||||
);
|
||||
|
||||
let ancestors = Arc::new(bank_forks.read().unwrap().ancestors());
|
||||
loop {
|
||||
let start = allocated.get();
|
||||
let mut frozen_banks: Vec<_> = bank_forks
|
||||
.read()
|
||||
@ -305,7 +304,6 @@ impl ReplayStage {
|
||||
fork_stats.total_staked,
|
||||
)
|
||||
};
|
||||
let mut done = false;
|
||||
let mut vote_bank_slot = None;
|
||||
let start = allocated.get();
|
||||
if !is_locked_out && vote_threshold {
|
||||
@ -380,17 +378,11 @@ impl ReplayStage {
|
||||
partition = false;
|
||||
inc_new_counter_info!("replay_stage-partition_resolved", 1);
|
||||
}
|
||||
} else {
|
||||
done = true;
|
||||
}
|
||||
datapoint_debug!(
|
||||
"replay_stage-memory",
|
||||
("reset_bank", (allocated.get() - start) as i64, i64),
|
||||
);
|
||||
if done {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
let start = allocated.get();
|
||||
if !tpu_has_bank {
|
||||
|
Reference in New Issue
Block a user