Skip to content

Commit 0e31664

Browse files
committed
Shorter description of permitted requests
1 parent 2306b48 commit 0e31664

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

ReplicaEngine/tla/ReplicaEngine.tla

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,14 @@ Request(request_count)
2323
on the document ID in seqno order. Any subsequent attempts to ADD the
2424
document have the retry flag set and modelled as a RETRY_ADD. Other operations
2525
on the document are also possible. *)
26-
== { [type |-> ADD, seqno |-> 1, content |-> content, autoIdTimeStamp |-> DocAutoIdTimestamp]
27-
: content \in DocContent
28-
}
26+
== [type : {ADD}, seqno : {1}, content : DocContent, autoIdTimeStamp : {DocAutoIdTimestamp}]
2927
(* RETRY_ADD: A retry of a write that does involve an internally-generated
3028
document ID. *)
31-
\cup { [type |-> RETRY_ADD, seqno |-> seqno, content |-> content, autoIdTimeStamp |-> DocAutoIdTimestamp]
32-
: seqno \in 1..request_count
33-
, content \in DocContent
34-
}
29+
\cup [type : {RETRY_ADD}, seqno : 1..request_count, content : DocContent, autoIdTimeStamp : {DocAutoIdTimestamp}]
3530
(* UPDATE: A write that does not involve an internally-generated document ID. *)
36-
\cup { [type |-> UPDATE, seqno |-> seqno, content |-> content]
37-
: seqno \in 1..request_count
38-
, content \in DocContent
39-
}
31+
\cup [type : {UPDATE}, seqno : 1..request_count, content : DocContent]
4032
(* DELETE *)
41-
\cup { [type |-> DELETE, seqno |-> seqno]
42-
: seqno \in 1..request_count
43-
}
33+
\cup [type : {DELETE}, seqno : 1..request_count]
4434

4535
(* The set of sets of requests, which have distinct seqnos *)
4636
RequestSet(request_count)

0 commit comments

Comments
 (0)