tla-plus/DistributedTransaction/Test2.tla
andylokandy 84639c0422 refine distributed transaction
Signed-off-by: andylokandy <andylokandy@hotmail.com>
2020-04-08 02:36:57 +08:00

13 lines
434 B
Plaintext

--------------------------------- MODULE Test2 ---------------------------------
EXTENDS DistributedTransaction, TLC
CONSTANT k1, k2, k3
CONSTANT c1, c2, c3
Key == {k1, k2, k3}
OptimistiicClient == {c3}
PessimisticClient == {c1, c2}
ClientKey == c1 :> {k1, k2, k3} @@ c2 :> {k1, k2} @@ c3 :> {k1, k3}
ClientPrimary == c1 :> k1 @@ c2 :> k1 @@ c3 :> k3
================================================================================