pub struct CheckpointCounters {Show 13 fields
pub last_observed_wal_pages: Option<u64>,
pub truncate_attempts: u64,
pub truncate_consecutive_failures: u64,
pub checkpoint_skipped_ticks: u64,
pub checkpoint_consecutive_skips: u64,
pub checkpoint_last_skip_wal_pages: Option<u64>,
pub checkpoint_pressure_elevated_ticks: u64,
pub checkpoint_pressure_episodes_started: u64,
pub checkpoint_pressure_episodes_recovered: u64,
pub checkpoint_lifecycle_append_attempts: u64,
pub checkpoint_lifecycle_append_failures: u64,
pub checkpoint_lifecycle_enqueue_drops: u64,
pub read_tx_max_age_evictions: u64,
}Expand description
ADR-091 checkpoint counters, read as one snapshot.
The two Option fields carry the u64::MAX “never observed” sentinel as
None, so a caller serializing this never sees 18446744073709551615
where it means “no observation yet”.
Fields§
§last_observed_wal_pages: Option<u64>§truncate_attempts: u64§truncate_consecutive_failures: u64§checkpoint_skipped_ticks: u64§checkpoint_consecutive_skips: u64§checkpoint_last_skip_wal_pages: Option<u64>§checkpoint_pressure_elevated_ticks: u64§checkpoint_pressure_episodes_started: u64§checkpoint_pressure_episodes_recovered: u64§checkpoint_lifecycle_append_attempts: u64§checkpoint_lifecycle_append_failures: u64§checkpoint_lifecycle_enqueue_drops: u64§read_tx_max_age_evictions: u64Cached-reader read transactions rolled back on reuse for exceeding
read_tx_max_age (#1846) — the count of WAL snapshots actually
released by that bound, not merely logged as stale.
Trait Implementations§
Source§impl Clone for CheckpointCounters
impl Clone for CheckpointCounters
impl Copy for CheckpointCounters
Source§impl Debug for CheckpointCounters
impl Debug for CheckpointCounters
impl Eq for CheckpointCounters
Source§impl PartialEq for CheckpointCounters
impl PartialEq for CheckpointCounters
Source§impl Serialize for CheckpointCounters
impl Serialize for CheckpointCounters
impl StructuralPartialEq for CheckpointCounters
Auto Trait Implementations§
impl Freeze for CheckpointCounters
impl RefUnwindSafe for CheckpointCounters
impl Send for CheckpointCounters
impl Sync for CheckpointCounters
impl Unpin for CheckpointCounters
impl UnsafeUnpin for CheckpointCounters
impl UnwindSafe for CheckpointCounters
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<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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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