pub struct MaintenanceStepRequest {
pub max_wal_tail_segments: Option<u64>,
pub retention: Option<bool>,
pub gc: Option<GcRequest>,
pub only: Option<MaintenanceStepKind>,
}Expand description
Options for one explicit maintenance step. Absent fields use the
server’s defaults; retention advance runs only when retention is true
and garbage collection only when gc is present.
Fields§
§max_wal_tail_segments: Option<u64>Flush the visible WAL tail into metadata tables when it reaches this
many segments. Values above the write-rejection threshold are
rejected as invalid_request.
retention: Option<bool>Advance the retention floor to the flushed manifest head. Nothing
surrenders replay history unless this is true or only selects
retention.
gc: Option<GcRequest>Run the mark-and-sweep garbage collector after the step’s flush work. Nothing sweeps unless this is present.
only: Option<MaintenanceStepKind>Restrict the step to one sub-step. Absent runs the whole step: WAL
flush, then reorganization, then retention if retention opted in,
then garbage collection if gc opted in.
Trait Implementations§
Source§impl Clone for MaintenanceStepRequest
impl Clone for MaintenanceStepRequest
Source§fn clone(&self) -> MaintenanceStepRequest
fn clone(&self) -> MaintenanceStepRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more