Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ba9c55b

Browse files
committed
strip quotes out of mm connstring
1 parent 755c033 commit ba9c55b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cluster.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ sub configure
104104
my $nodes = $self->{nodes};
105105

106106
my $connstr = $self->all_connstrs();
107+
$connstr =~ s/'//gms;
107108

108109
foreach my $node (@$nodes)
109110
{
@@ -367,6 +368,8 @@ sub add_node()
367368
$connstrs = $self->all_connstrs() . ", dbname=postgres host=127.0.0.1 port=$pgport arbiter_port=$arbiter_port";
368369
}
369370

371+
$connstrs =~ s/'//gms;
372+
370373
my $node = PostgresNode->get_new_node("node${node_id}x");
371374

372375
$self->{nodes}->[0]->backup("backup_for_$node_id");

t/005_add_stop_node.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646

4747
$cluster->add_node();
4848
$new_connstr = $cluster->{nodes}->[3]->{mmconnstr};
49+
$new_connstr =~ s/'//gms;
50+
4951
$cluster->psql(0, 'postgres', "SELECT mtm.add_node('$new_connstr')");
5052
# await for comletion?
5153
$cluster->{nodes}->[3]->start;

0 commit comments

Comments
 (0)