diff options
author | Kotresh HR <khiremat@redhat.com> | 2017-10-10 05:54:04 -0400 |
---|---|---|
committer | Aravinda VK <avishwan@redhat.com> | 2017-10-11 10:13:35 +0000 |
commit | 3edf926a1bda43879c09694cf3904c214c94c9dc (patch) | |
tree | e80415a7925e08d7556629d5add31a7982d9486a | |
parent | 6060b113f0f49fe9654fe03fc79576e591ed8a43 (diff) |
geo-rep: Fix status transition
The status transition is as below which is
wrong.
Created->Initializing->Active->Active/Passive->Stopped
As soon as the monitor spawns the worker, the state
is changed from 'Initializing' to 'Active' and then to
'Active/Passive' based on whether worker gets the lock
or not. This is wrong and it should directly tranistion
as below.
Created->Initializing->Active/Passive->Stopped
Change-Id: Ibf5ca5c4fdf168c403c6da01db60b93f0604aae7
BUG: 1500284
Signed-off-by: Kotresh HR <khiremat@redhat.com>
-rw-r--r-- | geo-replication/syncdaemon/monitor.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py index b65f1948050..4da933047c8 100644 --- a/geo-replication/syncdaemon/monitor.py +++ b/geo-replication/syncdaemon/monitor.py @@ -389,7 +389,6 @@ class Monitor(object): nwait(apid) # wait for agent ret = nwait(cpid) if ret is None: - self.status[w[0]['dir']].set_worker_status(self.ST_STABLE) # If worker dies, agent terminates on EOF. # So lets wait for agent first. nwait(apid) |