mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Clean up misuse and nonuse of poll_query_until().
Several callers of PostgresNode::poll_query_until() neglected to check for failure; I do not think that's optional. Also, rewrite one place that had reinvented poll_query_until() for no very good reason.
This commit is contained in:
@ -43,7 +43,7 @@ PostgresNode - class representing PostgreSQL server instance
|
||||
# run query every second until it returns 't'
|
||||
# or times out
|
||||
$node->poll_query_until('postgres', q|SELECT random() < 0.1;|')
|
||||
or print "timed out";
|
||||
or die "timed out";
|
||||
|
||||
# Do an online pg_basebackup
|
||||
my $ret = $node->backup('testbackup1');
|
||||
|
Reference in New Issue
Block a user