Skip to main content

lock_and_verify_named_uploads

Function lock_and_verify_named_uploads 

Source
async fn lock_and_verify_named_uploads(
    tx: &mut Transaction<'_, Postgres>,
    exercise_id: Uuid,
    user_id: Uuid,
    submission: &StudentExerciseSlideSubmission,
) -> Result<(), ControllerError>
Expand description

Re-checks the named uploads under the reaper’s row lock, inside the transaction that records the submission and before anything is written to it.