pub struct GcOptions {
pub min_age: Duration,
pub dry_run: bool,
pub fence_wal: bool,
}Expand description
Settings for Namespace::gc.
Fields§
§min_age: DurationHow old a segment must be before it is deleted, and how old the live segment that replaced it must be. It gives a slow reader time to finish and an operator time to notice a mistake. Readers do not depend on it: one that finds a segment gone reloads the manifest and reads again.
dry_run: boolWork out what would be deleted or fenced, report it, and change nothing.
fence_wal: boolAlso replace old WAL objects with fences (phase B). Off by default, because a fenced range can no longer be rebuilt from the WAL: the segments become the only copy of what it held.
The namespace must be at WAL format level 4
(FENCE_FORMAT_VERSION), or the call
fails with ItzmaError::WalFormatTooOld and changes nothing.
Trait Implementations§
impl Copy for GcOptions
impl Eq for GcOptions
impl StructuralPartialEq for GcOptions
Auto Trait Implementations§
impl Freeze for GcOptions
impl RefUnwindSafe for GcOptions
impl Send for GcOptions
impl Sync for GcOptions
impl Unpin for GcOptions
impl UnsafeUnpin for GcOptions
impl UnwindSafe for GcOptions
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
Mutably borrows from an owned value. Read more
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> ⓘ
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 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> ⓘ
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