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:
Oleksii Kliukin
2016-02-26 10:53:00 +01:00
parent 61feb47da8
commit e564fa7f08
+1
View File
@@ -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'