Added setting state to "stopped" when a member is stopped in Ha.shutdown (#733)

Changes by @tonys66, review by @CyberDem0n
This commit is contained in:
Tony Sorrentino
2018-07-23 14:59:39 +02:00
committed by Oleksii Kliukin
parent 2356af679b
commit c8f9199988
+1
View File
@@ -1168,6 +1168,7 @@ class Ha(object):
if not self.state_handler.is_running():
if self.has_lock():
self.dcs.delete_leader()
self.touch_member()
else:
# XXX: what about when Patroni is started as the wrong user that has access to the watchdog device
# but cannot shut down PostgreSQL. Root would be the obvious example. Would be nice to not kill the