forked from armon/go-chord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lm_messages.go
94 lines (76 loc) · 1.56 KB
/
lm_messages.go
1
2
3
4
5
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package buddystore
type tcpBodyLMRLockReq struct {
Vn *Vnode
SenderID string
Key string
SenderAddr string
OpsLogEntryPrimary *OpsLogEntry
}
type tcpBodyLMRLockResp struct {
LockId string
Version uint
CommitPoint uint64
// Extends:
TCPResponseImpl
}
type tcpBodyLMWLockReq struct {
Vn *Vnode
SenderID string
Key string
Version uint
Timeout uint
OpsLogEntryPrimary *OpsLogEntry
}
type tcpBodyLMWLockResp struct {
LockId string
Version uint
Timeout uint
CommitPoint uint64
// Extends:
TCPResponseImpl
}
type tcpBodyLMCommitWLockReq struct {
Vn *Vnode
SenderID string
Key string
Version uint
OpsLogEntryPrimary *OpsLogEntry
}
type tcpBodyLMCommitWLockResp struct {
Dummy bool
CommitPoint uint64
// Extends:
TCPResponseImpl
}
type tcpBodyLMAbortWLockReq struct {
Vn *Vnode
SenderID string
Key string
Version uint
OpsLogEntryPrimary *OpsLogEntry
}
type tcpBodyLMAbortWLockResp struct {
Dummy bool
CommitPoint uint64
// Extends:
TCPResponseImpl
}
type tcpBodyLMInvalidateRLockReq struct {
Vn *Vnode
LockID string
}
type tcpBodyLMInvalidateRLockResp struct {
Dummy bool
// Extends:
TCPResponseImpl
}
type tcpVersionMapUpdateReq struct {
Vn *Vnode
VersionMap *map[string]uint
// Extends:
TCPResponseImpl
}
type tcpVersionMapUpdateResp struct {
// Extends:
TCPResponseImpl
}