heal_global_snapshot_source_block_ids

Function heal_global_snapshot_source_block_ids 

Source
pub fn heal_global_snapshot_source_block_ids(
    gfs: &FileStore,
    def_ids: &[String],
) -> usize
Expand description

One-shot heal for global snapshots poisoned before the normalize-on-mirror fix (a channel-local sourceBlockId was mirrored into agent:<defId>:current, breaking cross-channel opens). For each def_id, rewrite its global snapshot’s sourceBlockId to “” iff it isn’t already. Idempotent and cheap (one small JSON per agent); returns the number healed. Best-effort per agent.