Skip to content

Commit 69189ec

Browse files
author
James William Pye
committed
Raise a startup error regardless of the result code.
The existence of the result code means the process no longer exists, and that is not what wait_until_started() is expecting to happen at all.
1 parent 868c923 commit 69189ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

postgresql/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@ def wait_until_started(self,
581581
if not self.running():
582582
if self.daemon_process is not None:
583583
r = self.daemon_process.returncode
584-
if r is not None and r != 0:
584+
if r is not None:
585585
raise ClusterStartupError(
586-
"postgres daemon exited with non-zero status",
586+
"postgres daemon terminated",
587587
details = {
588588
'RESULT' : r,
589589
'COMMAND' : self.daemon_command,

0 commit comments

Comments
 (0)