Commit 7ac5d9b3 authored by Alvaro Herrera's avatar Alvaro Herrera

PostgresNode: wrap correctly around port number range end

Per note from Tom Lane
parent 7e19db0c
......@@ -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 ]))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment