Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
4c9fb9a2
Commit
4c9fb9a2
authored
Jun 12, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
61308d4a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
go/neo/proto-marshal.go
go/neo/proto-marshal.go
+6
-6
go/neo/proto.go
go/neo/proto.go
+4
-2
neo/lib/protocol.py
neo/lib/protocol.py
+2
-2
No files found.
go/neo/proto-marshal.go
View file @
4c9fb9a2
...
...
@@ -2957,21 +2957,21 @@ overflow:
return
0
,
ErrDecodeOverflow
}
// 74.
ClusterInformation
// 74.
NotifyClusterState
func
(
_
*
ClusterInformation
)
NEOMsgCode
()
uint16
{
func
(
_
*
NotifyClusterState
)
NEOMsgCode
()
uint16
{
return
74
}
func
(
p
*
ClusterInformation
)
NEOMsgEncodedLen
()
int
{
func
(
p
*
NotifyClusterState
)
NEOMsgEncodedLen
()
int
{
return
4
}
func
(
p
*
ClusterInformation
)
NEOMsgEncode
(
data
[]
byte
)
{
func
(
p
*
NotifyClusterState
)
NEOMsgEncode
(
data
[]
byte
)
{
binary
.
BigEndian
.
PutUint32
(
data
[
0
:
],
uint32
(
int32
(
p
.
State
)))
}
func
(
p
*
ClusterInformation
)
NEOMsgDecode
(
data
[]
byte
)
(
int
,
error
)
{
func
(
p
*
NotifyClusterState
)
NEOMsgDecode
(
data
[]
byte
)
(
int
,
error
)
{
if
uint32
(
len
(
data
))
<
4
{
goto
overflow
}
...
...
@@ -3660,7 +3660,7 @@ var msgTypeRegistry = map[uint16]reflect.Type{
71
:
reflect
.
TypeOf
(
repairFlags
{}),
72
:
reflect
.
TypeOf
(
Repair
{}),
73
:
reflect
.
TypeOf
(
RepairOne
{}),
74
:
reflect
.
TypeOf
(
ClusterInformation
{}),
74
:
reflect
.
TypeOf
(
NotifyClusterState
{}),
75
:
reflect
.
TypeOf
(
AskClusterState
{}),
76
:
reflect
.
TypeOf
(
AnswerClusterState
{}),
77
:
reflect
.
TypeOf
(
ObjectUndoSerial
{}),
...
...
go/neo/proto.go
View file @
4c9fb9a2
...
...
@@ -683,6 +683,7 @@ type TweakPartitionTable struct {
// Notify information about one or more nodes. PM -> Any.
type
NotifyNodeInformation
struct
{
// XXX in py this is monotonic_time() of call to broadcastNodesInformation() & friends
IdTimestamp
float64
NodeList
[]
NodeInfo
}
...
...
@@ -718,8 +719,9 @@ type RepairOne struct {
repairFlags
}
// Notify information about the cluster
type
ClusterInformation
struct
{
// Notify information about the cluster state
// XXX = NotifyClusterInformation in py
type
NotifyClusterState
struct
{
State
ClusterState
}
...
...
neo/lib/protocol.py
View file @
4c9fb9a2
...
...
@@ -737,7 +737,7 @@ class PartitionTable(Packet):
PFRowList
,
)
# XXX dup wrt PartitionChanges ?
# XXX dup wrt PartitionChanges ?
-> no: here it is "send all rows" of PT
class
NotifyPartitionTable
(
Packet
):
"""
Send rows in a partition table to update other nodes. PM -> S, C.
...
...
@@ -747,7 +747,7 @@ class NotifyPartitionTable(Packet):
PFRowList
,
)
# XXX dup wrt NotifyPartitionTable ?
# XXX dup wrt NotifyPartitionTable ?
-> no: here it s "send changes" of PT
class
PartitionChanges
(
Packet
):
"""
Notify a subset of a partition table. This is used to notify changes.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment