check for prior discard in shred_fetch_stage (#31293)
This commit is contained in:
parent
39b548153a
commit
3cdd59e55f
|
@ -88,7 +88,7 @@ impl ShredFetchStage {
|
||||||
let should_drop_merkle_shreds =
|
let should_drop_merkle_shreds =
|
||||||
|shred_slot| should_drop_merkle_shreds(shred_slot, &root_bank);
|
|shred_slot| should_drop_merkle_shreds(shred_slot, &root_bank);
|
||||||
let turbine_disabled = turbine_disabled.load(Ordering::Relaxed);
|
let turbine_disabled = turbine_disabled.load(Ordering::Relaxed);
|
||||||
for packet in packet_batch.iter_mut() {
|
for packet in packet_batch.iter_mut().filter(|p| !p.meta().discard()) {
|
||||||
if turbine_disabled
|
if turbine_disabled
|
||||||
|| should_discard_shred(
|
|| should_discard_shred(
|
||||||
packet,
|
packet,
|
||||||
|
|
Loading…
Reference in New Issue