Skip to main content

set_segment_target_bytes

Function set_segment_target_bytes 

Source
pub fn set_segment_target_bytes(bytes: usize) -> TuningOverride
Expand description

Override the segment roll target for tests (rollover tests need a shrinkable segment). Process-wide; the returned guard restores the default when dropped. Serialize against other tuning-sensitive tests (the test module’s mutex) while an override is live. The slot treats 0 as “use the default” (the same value the guard stores), so passing 0 is equivalent to no override.