pub fn restore_seat_state(
db: &Db,
org: &str,
project: &str,
label: &str,
state: Option<SeatState>,
expected: SeatState,
) -> Result<bool>Expand description
Put a row’s seat state back to what it held before a refused spawn,
but only while the row still holds expected - the state that spawn
wrote. A newer decision (a close landing mid-spawn) stands: the
restore undoes the spawn’s own write, never the reader’s.