Commit 7e4e75e4 authored by Julien Muchembled's avatar Julien Muchembled

master: also stop storages when leaving backup state

parent 3ca8ea08
...@@ -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):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment