1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-13 01:00:23 +02:00

Multi-stanza check command.

Check command now checks multiple stanzas when the stanza option is omitted.

The stanza list is extracted from the current configuration rather than scanning the repository like the info command. Scanning the repository is a problem because configuration for each stanza may not be present in the current configuration. Since this functionality is new for check there is no regression.

Add a new section to the user guide to cover multi-stanza configuration and provide additional coverage for this feature.

Also fix a small issue in the parser when an indexed option has a dependency on a non-indexed option. There were no examples of this case in the previous configuration.
This commit is contained in:
David Steele
2023-08-07 17:03:09 +01:00
committed by GitHub
parent 995a8e9669
commit 1141dc2070
24 changed files with 516 additions and 86 deletions

View File

@ -155,7 +155,7 @@ sub run
# --------------------------------------------------------------------------------------------------------------------------
my $strComment = 'verify check command runs successfully';
$oHostDbPrimary->check($strComment, {iTimeout => 10});
$oHostDbPrimary->check($strComment, {iTimeout => 10, bStanza => false});
# Also run check on the backup host when present
if ($bHostBackup)