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
2bae4f65
Commit
2bae4f65
authored
3 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2a756ed2
No related merge requests found
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
...
...
This diff is collapsed.
Click to expand it.
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