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
5d56a8eb
Commit
5d56a8eb
authored
Feb 11, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9cb8a1c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
go/neo/master.go
go/neo/master.go
+10
-2
No files found.
go/neo/master.go
View file @
5d56a8eb
...
@@ -107,7 +107,7 @@ type nodeCome struct {
...
@@ -107,7 +107,7 @@ type nodeCome struct {
// nodeLeave represents "node (should be) disconnected" event.
// nodeLeave represents "node (should be) disconnected" event.
type
nodeLeave
struct
{
type
nodeLeave
struct
{
node
*
xneo
.
PeerNode
peer
*
_MasteredPeer
}
}
// _MasteredPeer represents context for all tasks related to one peer driven by master.
// _MasteredPeer represents context for all tasks related to one peer driven by master.
...
@@ -438,7 +438,15 @@ loop:
...
@@ -438,7 +438,15 @@ loop:
*/
*/
}()
}()
// XXX <-m.nodeLeave
case
n
:=
<-
m
.
nodeLeaveq
:
// XXX -> move to func
peer
:=
n
.
peer
// XXX link.Close
// XXX node.ResetLink
delete
(
m
.
peerTab
,
peer
.
node
.
NID
)
m
.
updateNodeState
(
ctx
,
peer
.
node
,
proto
.
DOWN
)
// a storage node came through recovery - let's see whether
// a storage node came through recovery - let's see whether
// ptid ↑ and if so we should take partition table from there
// ptid ↑ and if so we should take partition table from there
...
...
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