1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-30 05:39:12 +02:00

Fix miscalculation in time option command defaults.

These defaults were not getting the multiplier so the timeouts were much lower than expected.

Since PostgreSQL retries get/push this was probably not a big deal, but it could be critical in the future for a different time value.
This commit is contained in:
David Steele 2021-07-28 18:53:10 -04:00
parent 9f3c949635
commit 7517c5fef8
2 changed files with 3 additions and 2 deletions

View File

@ -395,6 +395,7 @@ sub buildConfigParse
{
my $strBuildSourceOptionalCommand;
my $rhCommand = $rhOption->{&CFGDEF_COMMAND}{$strCommand};
$rhCommand->{&CFGDEF_TYPE} = $rhOption->{&CFGDEF_TYPE};
if (defined($rhCommand))
{

View File

@ -1504,14 +1504,14 @@ static const ParseRuleOption parseRuleOption[CFG_OPTION_TOTAL] =
(
PARSE_RULE_OPTION_OPTIONAL_COMMAND(cfgCmdArchiveGet),
PARSE_RULE_OPTION_OPTIONAL_DEFAULT("1"),
PARSE_RULE_OPTION_OPTIONAL_DEFAULT("1000"),
)
PARSE_RULE_OPTION_OPTIONAL_COMMAND_OVERRIDE
(
PARSE_RULE_OPTION_OPTIONAL_COMMAND(cfgCmdArchivePush),
PARSE_RULE_OPTION_OPTIONAL_DEFAULT("1"),
PARSE_RULE_OPTION_OPTIONAL_DEFAULT("1000"),
)
),
),