Content-Length: 256097 | pFad | http://github.com/postgrespro/mmts/commit/ef0c766728b5bb01f547870e411e9338b3282dc2

5F [PGPRO-5554] Make add_node get port via mm_get_free_port from Cluster… · postgrespro/mmts@ef0c766 · GitHub
Skip to content

Commit ef0c766

Browse files
author
Alexey Masterov
committed
[PGPRO-5554] Make add_node get port via mm_get_free_port from Cluster.pm in order to fix rare error Could not bind IPv4 address in TAP tests. tags: multimaster
1 parent 7ca0008 commit ef0c766

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Cluster.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ sub add_node()
340340
{
341341
my ($self) = @_;
342342

343-
my $new_node = get_new_node("node@{[$#{$self->{nodes}} + 2]}");
343+
my $new_node = get_new_node("node@{[$#{$self->{nodes}} + 2]}",
344+
(port => mm_get_free_port()));
344345
push(@{$self->{nodes}}, $new_node);
345346

346347
return $#{$self->{nodes}};

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/mmts/commit/ef0c766728b5bb01f547870e411e9338b3282dc2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy