pub struct CheckpointData {
pub checkpoint_id: u64,
pub begin_checkpoint_lsn: Lsn,
pub end_checkpoint_lsn: Lsn,
pub active_transactions: Vec<ActiveTransactionEntry>,
pub dirty_pages: Vec<DirtyPageEntry>,
pub timestamp: u64,
pub oldest_required_lsn: Lsn,
}Expand description
Checkpoint data written to WAL
Fields§
§checkpoint_id: u64Checkpoint ID (monotonically increasing)
begin_checkpoint_lsn: LsnLSN at start of checkpoint
end_checkpoint_lsn: LsnLSN at end of checkpoint
active_transactions: Vec<ActiveTransactionEntry>Active transactions at checkpoint time
dirty_pages: Vec<DirtyPageEntry>Dirty pages at checkpoint time
timestamp: u64Timestamp when checkpoint was taken
oldest_required_lsn: LsnOldest LSN needed for recovery (min of active txn first_lsn and dirty page recovery_lsn)
Implementations§
Source§impl CheckpointData
impl CheckpointData
Sourcepub fn new(
checkpoint_id: u64,
begin_lsn: Lsn,
active_txns: Vec<ActiveTransactionEntry>,
dirty_pages: Vec<DirtyPageEntry>,
) -> Self
pub fn new( checkpoint_id: u64, begin_lsn: Lsn, active_txns: Vec<ActiveTransactionEntry>, dirty_pages: Vec<DirtyPageEntry>, ) -> Self
Create a new checkpoint
Trait Implementations§
Source§impl Clone for CheckpointData
impl Clone for CheckpointData
Source§fn clone(&self) -> CheckpointData
fn clone(&self) -> CheckpointData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointData
impl Debug for CheckpointData
Source§impl<'de> Deserialize<'de> for CheckpointData
impl<'de> Deserialize<'de> for CheckpointData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CheckpointData
impl RefUnwindSafe for CheckpointData
impl Send for CheckpointData
impl Sync for CheckpointData
impl Unpin for CheckpointData
impl UnwindSafe for CheckpointData
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<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