Skip to main content

local_recovery_swap_action

Function local_recovery_swap_action 

Source
pub const fn local_recovery_swap_action(
    facts: LocalRecoverySwapFacts,
) -> LocalRecoverySwapAction
Expand description

Classify one swap set: abort it only while it is uncommitted, and complete it whenever it is committed, whether or not the original log still exists.

Aborting is safe only because the host deletes no replaced segment before the .cleaned-to-.swap rename of the log is durable (host responsibility: atomic_swap fsyncs the directory between the two steps).