Newer
Older
import "store/common/common-proto.proto";
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
message GetMessage {
required string key = 1;
optional TimestampMessage timestamp = 2;
}
message PrepareMessage {
required TransactionMessage txn = 1;
optional uint64 timestamp = 2;
}
message CommitMessage {
required uint64 timestamp = 1;
}
message AbortMessage {
required TransactionMessage txn = 1;
}
message Request {
enum Operation {
GET = 1;
PREPARE = 2;
COMMIT = 3;
ABORT = 4;
}
required Operation op = 1;
required uint64 txnid = 2;
optional GetMessage get = 3;
optional PrepareMessage prepare = 4;
optional CommitMessage commit = 5;
optional AbortMessage abort = 6;
}
message Reply {
// 0 = OK
// -1 = failed
// -2 = retry
// -3 = abstain/no reply
required int32 status = 1;
optional string value = 2;
optional uint64 timestamp = 3;
}