pub struct GcResponse {
pub namespace_id: NamespaceId,
pub deleted: DeletedObjectCounts,
pub released_checkpoints: ReleasedCheckpointCounts,
pub retained_candidates: u64,
pub retained: RetainedCandidates,
pub retention_degraded: bool,
pub content_reclamation_deferred: bool,
pub budget_exhausted: bool,
pub next_cursor: Option<String>,
pub next_reclamation_at_ms: Option<u64>,
}Expand description
Result of one mark-and-sweep garbage-collection pass.
Deletion counts are grouped by object family. Checkpoint releases and retained candidates are grouped by reason.
Fields§
§namespace_id: NamespaceIdNamespace the pass ran against.
deleted: DeletedObjectCountsObjects the pass deleted, split by object family.
released_checkpoints: ReleasedCheckpointCountsCheckpoint records the pass released, split by the reason each one was released.
retained_candidates: u64Candidates retained at delete time (grace window, missing timestamps, or reachable from the fresh root set).
retained: RetainedCandidatesretained_candidates grouped by reason.
retention_degraded: boolTrue when ambiguous roots suppressed manifest/segment deletion.
content_reclamation_deferred: boolTrue when max_objects was too small to build the complete reference
set required for completed-content reclamation.
budget_exhausted: boolTrue when the pass reached max_objects before it finished. Use
next_cursor to continue or run again with a larger limit.
next_cursor: Option<String>Opaque resume token when more candidates remain. It is valid only for the same namespace.
next_reclamation_at_ms: Option<u64>Earliest known time when a retained upload session may become reclaimable. This covers open-session leases and grace periods for aborted or completed sessions. It only reflects candidates inspected by this pass, so absence does not mean no future work remains.
Implementations§
Source§impl GcResponse
impl GcResponse
Sourcepub fn empty(namespace_id: NamespaceId) -> Self
pub fn empty(namespace_id: NamespaceId) -> Self
An empty report for namespace_id, before any candidate is examined.
Sourcepub fn retain(&mut self, reason: RetainedReason)
pub fn retain(&mut self, reason: RetainedReason)
Records one retained candidate under the reason that spared it.
The total and the breakdown move together here so they cannot drift: every sweep site names a reason, and no site can count a retention without naming one.
Trait Implementations§
Source§impl Clone for GcResponse
impl Clone for GcResponse
Source§fn clone(&self) -> GcResponse
fn clone(&self) -> GcResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more