Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
bf8c0af0
Commit
bf8c0af0
authored
Feb 18, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e7446b47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
go/neo/mastered.go
go/neo/mastered.go
+2
-3
No files found.
go/neo/mastered.go
View file @
bf8c0af0
...
@@ -66,9 +66,8 @@ type _MasteredNode struct {
...
@@ -66,9 +66,8 @@ type _MasteredNode struct {
// - state of partTab/nodeTab is operational
// - state of partTab/nodeTab is operational
opMu
sync
.
RWMutex
opMu
sync
.
RWMutex
mlink
*
neonet
.
NodeLink
// link to master
mlink
*
neonet
.
NodeLink
// link to master
// state xneo.ClusterState // nodeTab/partTab/clusterState
opReady
chan
struct
{}
// reinitialized each time state becomes non-operational
opReady
chan
struct
{}
// reinitialized each time state becomes non-operational
operational
bool
// cache for
s
tate.IsOperational()
operational
bool
// cache for
Node.S
tate.IsOperational()
rxmFlags
_MasteredNodeFlags
// if e.g. δPartTab messages should be delivered to mlink.Recv1
rxmFlags
_MasteredNodeFlags
// if e.g. δPartTab messages should be delivered to mlink.Recv1
// XXX just use `.myInfo.NodeType == STORAGE` instead?
// XXX just use `.myInfo.NodeType == STORAGE` instead?
...
@@ -85,7 +84,7 @@ const (
...
@@ -85,7 +84,7 @@ const (
δPartTabPassThrough
_MasteredNodeFlags
=
iota
δPartTabPassThrough
_MasteredNodeFlags
=
iota
)
)
// newMasteredNode creats new _MasteredNode that connects to masterAddr/cluster via net.
// newMasteredNode creat
e
s new _MasteredNode that connects to masterAddr/cluster via net.
func
newMasteredNode
(
typ
proto
.
NodeType
,
clusterName
string
,
net
xnet
.
Networker
,
masterAddr
string
)
*
_MasteredNode
{
func
newMasteredNode
(
typ
proto
.
NodeType
,
clusterName
string
,
net
xnet
.
Networker
,
masterAddr
string
)
*
_MasteredNode
{
node
:=
&
_MasteredNode
{
node
:=
&
_MasteredNode
{
Node
:
xneo
.
NewNode
(
typ
,
clusterName
,
net
,
masterAddr
),
Node
:
xneo
.
NewNode
(
typ
,
clusterName
,
net
,
masterAddr
),
...
...
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