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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
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
Hide 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 {
// - state of partTab/nodeTab is operational
opMu
sync
.
RWMutex
mlink
*
neonet
.
NodeLink
// link to master
// state xneo.ClusterState // nodeTab/partTab/clusterState
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
// XXX just use `.myInfo.NodeType == STORAGE` instead?
...
...
@@ -85,7 +84,7 @@ const (
δ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
{
node
:=
&
_MasteredNode
{
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