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
2bae4f65
Commit
2bae4f65
authored
Feb 19, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2a756ed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
go/neo/master.go
go/neo/master.go
+3
-4
No files found.
go/neo/master.go
View file @
2bae4f65
...
...
@@ -81,7 +81,7 @@ type Master struct {
// main <- node come or go
nodeComeq
chan
nodeCome
// main <- accept "node connected"
nodeLeaveq
chan
nodeLeave
// main <- peer
WG
.wait "node (should be) disconnected"
nodeLeaveq
chan
nodeLeave
// main <- peer.wait "node (should be) disconnected"
// in addition to nodeTab (which keeps information about a node) tasks
// and mastering context that are specific to a peer are organized
...
...
@@ -129,10 +129,9 @@ type _MasteredPeer struct {
// snapshot of nodeTab/partTab/stateCode when peer was accepted by main.
state0
*
xneo
.
ClusterStateSnapshot
// main -> peer
WG
.notify δnodeTab/δpartTab/δstateCode.
// main -> peer.notify δnodeTab/δpartTab/δstateCode.
notifyq
chan
_ΔClusterState
// notifyqOverflow becomes ready if main detects that peer is to slow to consume updates
// XXX no need? (peer.notify is canceled via peerWork.cancel)
// main -> peer.notify "you are slow to consume updates"
notifyqOverflow
chan
struct
{}
acceptSent
chan
struct
{}
// ready after initial accept sequence is sent to the peer
...
...
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