mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-27 22:52:07 +02:00
PostgresNode: wrap correctly around port number range end
Per note from Tom Lane
This commit is contained in:
parent
7e19db0c09
commit
7ac5d9b316
@ -321,7 +321,8 @@ sub get_new_node
|
||||
|
||||
while ($found == 0)
|
||||
{
|
||||
$port++;
|
||||
# wrap correctly around range end
|
||||
$port = 49152 if ++$port >= 65536;
|
||||
print "# Checking for port $port\n";
|
||||
if (!TestLib::run_log([ 'pg_isready', '-p', $port ]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user