Skip to content

Commit

Permalink
chore(Percolator): add Liveness property for locks
Browse files Browse the repository at this point in the history
  • Loading branch information
s12f committed Dec 29, 2024
1 parent 4f01875 commit 836dea4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion percolator/Percolator.tla
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,12 @@ Recover ≜ ∃k ∈ Key:
AllCommittedOrAborted
tx Tx: txs[tx].status { "committed", "aborted" }

AllLocksCleaned
k Key: rows[k].lock =

Done
AllCommittedOrAborted
AllLocksCleaned
UNCHANGED next_ts, rows, txs

-----------------------------------------------------------------------------
Expand Down Expand Up @@ -216,6 +220,6 @@ Spec ≜ Init ∧ □[Next]_⟨all_vars⟩ ∧ WF_⟨all_vars⟩(Next)

TypeOK tx Tx: txs[tx].status TxStatus

Liveness (AllCommittedOrAborted)
Liveness (AllCommittedOrAborted AllLocksCleaned)

============================================================================

0 comments on commit 836dea4

Please sign in to comment.