Skip to main content

persist_backfilled_metadata_and_notify_if_fenced

Function persist_backfilled_metadata_and_notify_if_fenced 

Source
pub(crate) async fn persist_backfilled_metadata_and_notify_if_fenced(
    sender: &Sender<WorkerRequestWithTime>,
    region: &MitoRegionRef,
)
Expand description

Persists the metadata the opener filled in for region and, if the commit fenced the region, asks its worker through sender for the reload. A save that finds the region not a writable leader with its Leader lease, such as in a change the worker started after it spawned the save, has the worker defer it.