pub struct GcReport {
pub segments_deleted: usize,
pub bytes_freed: u64,
pub segments_too_young: usize,
pub wal_objects_fenced: usize,
pub wal_bytes_freed: u64,
pub wal_too_young: usize,
pub indexes_deleted: usize,
pub indexes_too_young: usize,
pub sparse_indexes_deleted: usize,
pub sparse_indexes_too_young: usize,
}Expand description
What a call to Namespace::gc did.
The counts are what the run set out to delete and did not fail on. Deleting
an object that is already gone is not an error and is still counted, so two
collectors running at once can both count the same segment. With
GcOptions::dry_run they are what a real run would have counted.
Fields§
§segments_deleted: usizeDead segments removed, each with every object under its directory.
bytes_freed: u64Total size of the objects removed.
segments_too_young: usizeDead segments left for a later run because they, or the live segment
that replaced them, are younger than min_age.
wal_objects_fenced: usizeWAL objects replaced by a fence. Zero unless GcOptions::fence_wal is
set. An object that is already a fence is not counted.
wal_bytes_freed: u64What the fenced WAL objects held, less the 8 bytes each fence keeps.
wal_too_young: usizeWAL objects left for a later run because they, or the live segment that
holds their seq, are younger than min_age.
indexes_deleted: usizeIndex objects removed from segments that are still live: the ones the
manifest does not name, an older generation that a rebuild replaced or
an orphan of a build that never published. The index objects
inside a dead segment’s directory go with the segment and are counted
there. Their size is part of bytes_freed.
indexes_too_young: usizeIndex objects left for a later run because they, or the index that
replaced them, are younger than min_age.
sparse_indexes_deleted: usizeSparse index objects removed from segments that are still live: an older
generation a rebuild replaced, or an orphan of a build that never
published. One inside a dead segment’s directory goes with the
segment and is counted there. Their size is part of bytes_freed.
sparse_indexes_too_young: usizeSparse index objects left for a later run because they, or the index that
replaced them, are younger than min_age.
Trait Implementations§
impl Copy for GcReport
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§
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more