Skip to main content

lock_open_changeset

Function lock_open_changeset 

Source
pub(super) async fn lock_open_changeset(
    conn: &mut PgConnection,
    changeset_id: Uuid,
    reviewed_revision: Option<i32>,
) -> ModelResult<Result<AgentChangeset, LockRejection>>
Expand description

Locks the changeset until the transaction ends and checks that it is open and, with reviewed_revision, still at that revision.