pub struct WalFileShared {
pub metadata: WalSharedMetadata,
pub runtime: WalSharedRuntime,
}Expand description
WalFileShared holds process-wide WAL metadata plus process-local coordination state.
Fields§
§metadata: WalSharedMetadata§runtime: WalSharedRuntimeImplementations§
pub fn last_checksum_and_max_frame(&self) -> ((u32, u32), u64)
Non-blocking entry point for WalFileShared::open_shared_if_exists.
Performs only the synchronous file open (and readonly/NotFound noop
handling); the WAL recovery scan is driven via [OpenSharedWal::poll].
pub fn is_initialized(&self) -> Result<bool>
pub fn new_noop() -> Arc<RwLock<WalFileShared>> ⓘ
pub fn page_size(&self) -> u32
Sourcepub fn replace_after_external_restore(&mut self, restored: WalFileShared)
pub fn replace_after_external_restore(&mut self, restored: WalFileShared)
Replace restored WAL state while preserving process-local locks owned by existing connections.
External restore paths rebuild metadata/cache/file state from disk while
other connections may still hold read guards. Those guards are tied to
the process-local lock objects, not to the restored on-disk WAL view, so
replacing the lock objects would make normal end_read_tx unlock a
fresh empty lock. Keep lock identity stable and refresh only state
derived from storage.
Trait Implementations§
Auto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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