Skip to main content

migrate_actor_store_tx

Function migrate_actor_store_tx 

Source
pub fn migrate_actor_store_tx(
    conn: &mut Connection,
    store: &BTreeMap<String, ActorRecord>,
    launch_mode: Option<String>,
    controller_epoch: Option<i64>,
) -> Result<()>
Expand description

Migrate a legacy session-actors.json store into the empty sqlite state.

The orchestration caller loads the legacy JSON and the bootstrap-derived launch_mode/controller_epoch tendril, then hands them to this routine, which only runs when the documents table is still empty.