Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7ac5d9b

Browse files
committed
PostgresNode: wrap correctly around port number range end
Per note from Tom Lane
1 parent7e19db0 commit7ac5d9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/test/perl/PostgresNode.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ sub get_new_node
321321

322322
while ($found == 0)
323323
{
324-
$port++;
324+
# wrap correctly around range end
325+
$port = 49152if ++$port >= 65536;
325326
print"# Checking for port$port\n";
326327
if (!TestLib::run_log(['pg_isready','-p',$port ]))
327328
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp