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
7e4e75e4
Commit
7e4e75e4
authored
Feb 29, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
master: also stop storages when leaving backup state
parent
3ca8ea08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
neo/master/app.py
neo/master/app.py
+5
-5
No files found.
neo/master/app.py
View file @
7e4e75e4
...
@@ -294,11 +294,6 @@ class Application(object):
...
@@ -294,11 +294,6 @@ class Application(object):
self
.
backup_tid
=
tid
=
self
.
getLastTransaction
()
self
.
backup_tid
=
tid
=
self
.
getLastTransaction
()
self
.
pt
.
setBackupTidDict
(
dict
((
node
.
getUUID
(),
tid
)
self
.
pt
.
setBackupTidDict
(
dict
((
node
.
getUUID
(),
tid
)
for
node
in
self
.
nm
.
getStorageList
(
only_identified
=
True
)))
for
node
in
self
.
nm
.
getStorageList
(
only_identified
=
True
)))
for
node
in
self
.
nm
.
getIdentifiedList
():
if
node
.
isStorage
()
or
node
.
isClient
():
node
.
notify
(
Packets
.
StopOperation
())
if
node
.
isClient
():
node
.
getConnection
().
abort
()
def
playPrimaryRole
(
self
):
def
playPrimaryRole
(
self
):
neo
.
lib
.
logging
.
info
(
neo
.
lib
.
logging
.
info
(
...
@@ -342,6 +337,11 @@ class Application(object):
...
@@ -342,6 +337,11 @@ class Application(object):
self
.
backup_app
.
provideService
()
self
.
backup_app
.
provideService
()
else
:
else
:
self
.
provideService
()
self
.
provideService
()
for
node
in
self
.
nm
.
getIdentifiedList
():
if
node
.
isStorage
()
or
node
.
isClient
():
node
.
notify
(
Packets
.
StopOperation
())
if
node
.
isClient
():
node
.
getConnection
().
abort
()
def
playSecondaryRole
(
self
):
def
playSecondaryRole
(
self
):
"""
"""
...
...
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