From e564fa7f083aab2018d7b095ebd9309a5164267d Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Fri, 26 Feb 2016 10:53:00 +0100 Subject: [PATCH] Update DCS status right after acquiring the lock. This commit only handles the initial bootstrap case, uncovered by the upcoming lettuce tests --- patroni/ha.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patroni/ha.py b/patroni/ha.py index 9e9f88aa..3f179b14 100644 --- a/patroni/ha.py +++ b/patroni/ha.py @@ -88,6 +88,7 @@ class Ha(object): self.state_handler.move_data_directory() raise self.dcs.take_leader() + self.load_cluster_from_dcs() return 'initialized a new cluster' else: return 'failed to acquire initialize lock'