mirror of
https://github.com/pingcap/tla-plus.git
synced 2024-12-27 21:10:15 +08:00
13 lines
434 B
Plaintext
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
|
||
|
================================================================================
|