Skip to main content

settle_relocated_copy

Function settle_relocated_copy 

Source
pub(super) fn settle_relocated_copy(
    block_id: &str,
    copy: &Relocated,
    forked_from: Option<&str>,
    captured: &str,
) -> bool
Expand description

Once a relocated resume reports its session: a fork (a new id) never wrote the copy, so it goes. The same id back means the CLI resumed the copy in place instead of forking; it is live now, so only its marker goes, and the duplicate is logged (spec §3 I4). Returns whether the copy was still this spawn’s: a replacement’s sweep may have taken it and placed its own at the same path, which is then left alone.