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
acdc6eea
Commit
acdc6eea
authored
Mar 22, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a log when secondary master UUID gets modified.
parent
95937a53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
neo/master/handlers/secondary.py
neo/master/handlers/secondary.py
+3
-0
No files found.
neo/master/handlers/secondary.py
View file @
acdc6eea
...
@@ -18,6 +18,8 @@ from . import MasterHandler
...
@@ -18,6 +18,8 @@ from . import MasterHandler
from
neo.lib.handler
import
EventHandler
from
neo.lib.handler
import
EventHandler
from
neo.lib.exception
import
ElectionFailure
,
PrimaryFailure
from
neo.lib.exception
import
ElectionFailure
,
PrimaryFailure
from
neo.lib.protocol
import
NodeTypes
,
Packets
from
neo.lib.protocol
import
NodeTypes
,
Packets
from
neo.lib
import
logging
from
neo.lib.util
import
dump
class
SecondaryMasterHandler
(
MasterHandler
):
class
SecondaryMasterHandler
(
MasterHandler
):
""" Handler used by primary to handle secondary masters"""
""" Handler used by primary to handle secondary masters"""
...
@@ -93,6 +95,7 @@ class PrimaryHandler(EventHandler):
...
@@ -93,6 +95,7 @@ class PrimaryHandler(EventHandler):
if
your_uuid
!=
app
.
uuid
:
if
your_uuid
!=
app
.
uuid
:
# uuid conflict happened, accept the new one
# uuid conflict happened, accept the new one
app
.
uuid
=
your_uuid
app
.
uuid
=
your_uuid
logging
.
info
(
'My UUID: '
+
dump
(
your_uuid
))
node
.
setUUID
(
uuid
)
node
.
setUUID
(
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