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
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
Hide 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
from
neo.lib.handler
import
EventHandler
from
neo.lib.exception
import
ElectionFailure
,
PrimaryFailure
from
neo.lib.protocol
import
NodeTypes
,
Packets
from
neo.lib
import
logging
from
neo.lib.util
import
dump
class
SecondaryMasterHandler
(
MasterHandler
):
""" Handler used by primary to handle secondary masters"""
...
...
@@ -93,6 +95,7 @@ class PrimaryHandler(EventHandler):
if
your_uuid
!=
app
.
uuid
:
# uuid conflict happened, accept the new one
app
.
uuid
=
your_uuid
logging
.
info
(
'My UUID: '
+
dump
(
your_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