Skip to main content

GcReport

Struct GcReport 

Source
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: usize

Dead segments removed, each with every object under its directory.

§bytes_freed: u64

Total size of the objects removed.

§segments_too_young: usize

Dead segments left for a later run because they, or the live segment that replaced them, are younger than min_age.

§wal_objects_fenced: usize

WAL 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: u64

What the fenced WAL objects held, less the 8 bytes each fence keeps.

§wal_too_young: usize

WAL objects left for a later run because they, or the live segment that holds their seq, are younger than min_age.

§indexes_deleted: usize

Index 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: usize

Index objects left for a later run because they, or the index that replaced them, are younger than min_age.

§sparse_indexes_deleted: usize

Sparse 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: usize

Sparse index objects left for a later run because they, or the index that replaced them, are younger than min_age.

Trait Implementations§

Source§

impl Clone for GcReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GcReport

Source§

impl Debug for GcReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GcReport

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for GcReport

Source§

impl PartialEq for GcReport

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for GcReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.