mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
Fixes to contrib/convert-config.pl
This commit is contained in:
@@ -36,12 +36,12 @@ while(<$fh>) {
|
|||||||
chomp $line;
|
chomp $line;
|
||||||
if ($line =~ m|\s*#|) {
|
if ($line =~ m|\s*#|) {
|
||||||
push @outp, $line;
|
push @outp, $line;
|
||||||
continue;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line !~ m|\s*(\S+?)\s*=(.+?)$|) {
|
if ($line !~ m|\s*(\S+?)\s*=(.+?)$|) {
|
||||||
push @outp, $line;
|
push @outp, $line;
|
||||||
continue;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $param = $1;
|
my $param = $1;
|
||||||
@@ -66,9 +66,12 @@ while(<$fh>) {
|
|||||||
elsif ($param eq 'logfile') {
|
elsif ($param eq 'logfile') {
|
||||||
push @outp, qq|log_file=${value}|;
|
push @outp, qq|log_file=${value}|;
|
||||||
}
|
}
|
||||||
elsif ($param eq 'master_reponse_timeout') {
|
elsif ($param eq 'master_response_timeout') {
|
||||||
push @outp, qq|async_query_timeout=${value}|;
|
push @outp, qq|async_query_timeout=${value}|;
|
||||||
}
|
}
|
||||||
|
elsif ($param eq 'retry_promote_interval_secs') {
|
||||||
|
push @outp, qq|primary_notification_timeout=${value}|;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
if ($param eq 'data_directory') {
|
if ($param eq 'data_directory') {
|
||||||
$data_directory_found = 1;
|
$data_directory_found = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user