From c8f91999881dda96230fbf4c7565c4d77a5d1ea6 Mon Sep 17 00:00:00 2001 From: Tony Sorrentino <4976173+tonys66@users.noreply.github.com> Date: Mon, 23 Jul 2018 07:59:39 -0500 Subject: [PATCH] Added setting state to "stopped" when a member is stopped in Ha.shutdown (#733) Changes by @tonys66, review by @CyberDem0n --- patroni/ha.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patroni/ha.py b/patroni/ha.py index f2bf6651..0b4f8299 100644 --- a/patroni/ha.py +++ b/patroni/ha.py @@ -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