mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 15:40:21 +00:00
Update DCS status right after acquiring the lock.
This commit only handles the initial bootstrap case, uncovered by the upcoming lettuce tests
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user