From e839386283fb72d4744fc675d75f023b233af92c Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Tue, 10 May 2016 12:56:36 +0200 Subject: [PATCH] Remove the comment that is oudated since the bootstrap separation from the create replica. --- patroni/postgresql.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/patroni/postgresql.py b/patroni/postgresql.py index df06760f..1011a7ab 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -715,17 +715,12 @@ $$""".format(name, options), name, password, password) return ret def bootstrap(self): - """ - Failure during initdb always leads to an exception, since there is - no point in continuing if initdb fails. For the rest of the cases, - the function returns False in order to inidicate a failed attempt - that should be retried in the future. - """ + """ Initialize a new node from scratch and start it. """ if self.initialize() and self.start(): self.create_replication_user() self.create_connection_user() - return True - raise PostgresException("Could not bootstrap master PostgreSQL") + else: + raise PostgresException("Could not bootstrap master PostgreSQL") def move_data_directory(self): if os.path.isdir(self.data_dir) and not self.is_running():