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
Ivan Tyagov
neoppod
Commits
d5e37b2b
Commit
d5e37b2b
authored
Feb 29, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use the same handler for identification on secondary masters.
parent
7de9f20c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
neo/master/app.py
neo/master/app.py
+1
-1
neo/master/handlers/identification.py
neo/master/handlers/identification.py
+7
-0
No files found.
neo/master/app.py
View file @
d5e37b2b
...
@@ -373,7 +373,7 @@ class Application(object):
...
@@ -373,7 +373,7 @@ class Application(object):
# and another for the future incoming connections
# and another for the future incoming connections
self
.
listening_conn
.
setHandler
(
self
.
listening_conn
.
setHandler
(
identification
.
IdentificationHandler
(
self
))
identification
.
Secondary
IdentificationHandler
(
self
))
while
True
:
while
True
:
self
.
em
.
poll
(
1
)
self
.
em
.
poll
(
1
)
...
...
neo/master/handlers/identification.py
View file @
d5e37b2b
...
@@ -62,3 +62,10 @@ class IdentificationHandler(MasterHandler):
...
@@ -62,3 +62,10 @@ class IdentificationHandler(MasterHandler):
handler
.
connectionCompleted
(
conn
)
handler
.
connectionCompleted
(
conn
)
app
.
broadcastNodesInformation
([
node
])
app
.
broadcastNodesInformation
([
node
])
class
SecondaryIdentificationHandler
(
MasterHandler
):
def
_setupNode
(
self
,
conn
,
node_type
,
uuid
,
address
,
node
):
# Nothing to do, storage will disconnect when it receives our answer.
# Primary will do the checks.
return
uuid
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