pub struct GcReport {
pub strategy: &'static str,
pub archive: PathBuf,
pub retired: Option<PathBuf>,
pub bytes_before: u64,
pub bytes_after: u64,
pub rows: u64,
pub delta_rows: u64,
pub verified: bool,
pub retired_packs: u64,
}Expand description
What one GC run did. Owned by the git-storage-trait contract; re-exported
here so crate::gc::GcReport stays a valid path. Every field is measured
off the filesystem or off the archive after the fact — see the trait crate
for per-field docs, and note retired_packs is always 0 from a bare
Gc::run: GitOps::gc fills it in.
What one GC run did. Every field is measured off the store after the fact —
nothing here is an input echoed back.
Fields§
§strategy: &'static strThe name of the implementation that produced this.
archive: PathBufThe store that serves after the run.
retired: Option<PathBuf>The generation that was removed once the new one was proven. None for
an in-place compaction that has no distinct old file to remove.
bytes_before: u64§bytes_after: u64§rows: u64Live entries carried across. A GC never changes this.
delta_rows: u64Delta-map rows carried across. Also never changed.
verified: boolWhether the result was read back and checked. false does not mean it
failed — an in-place compaction verifies after it has committed.
retired_packs: u64Packs whose every object this run found dead, and whose rows it therefore tombstoned.
Trait Implementations§
impl Eq for GcReport
impl StructuralPartialEq for GcReport
Auto Trait Implementations§
impl Freeze for GcReport
impl RefUnwindSafe for GcReport
impl Send for GcReport
impl Sync for GcReport
impl Unpin for GcReport
impl UnsafeUnpin for GcReport
impl UnwindSafe for GcReport
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.