mirror of
https://github.com/pingcap/tla-plus.git
synced 2024-12-27 13:00:31 +08:00
84639c0422
Signed-off-by: andylokandy <andylokandy@hotmail.com>
13 lines
418 B
Plaintext
13 lines
418 B
Plaintext
--------------------------------- MODULE Test1 ---------------------------------
|
|
EXTENDS DistributedTransaction, TLC
|
|
|
|
CONSTANT k1, k2
|
|
CONSTANT c1, c2, c3
|
|
|
|
Key == {k1, k2}
|
|
OptimistiicClient == {c3}
|
|
PessimisticClient == {c1, c2}
|
|
ClientKey == c1 :> {k1, k2} @@ c2 :> {k1} @@ c3 :> {k1, k2}
|
|
ClientPrimary == c1 :> k1 @@ c2 :> k1 @@ c3 :> k2
|
|
================================================================================
|