Skip to main content

upsert_actor_document

Function upsert_actor_document 

Source
pub fn upsert_actor_document(
    conn: &Connection,
    record: &ActorRecord,
    transition_id: i64,
    launch_mode: Option<String>,
    controller_epoch: Option<i64>,
) -> Result<()>
Expand description

Upsert the authoritative documents row for an actor.

launch_mode and controller_epoch are the lifted orchestration tendril: the orchestration caller computes them from read_bootstrap (launch mode short string + bootstrap epoch) and passes them in. Pass None/None when no bootstrap state is available.