You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-13 01:00:23 +02:00
Improved check command to run on a standby.
Only basic checks are done because pg_switch_xlog() cannot be executed on a replica. Contributed by Cynthia Shang.
This commit is contained in:
committed by
David Steele
parent
974a02dbe4
commit
56144c99c0
@ -783,14 +783,17 @@ sub stanzaCreate
|
||||
bLogOutput => $self->synthetic()});
|
||||
|
||||
# If the info file was created, then add it to the expect log
|
||||
if ($self->synthetic() && fileExists($self->repoPath() . '/backup/' . $self->stanza() . '/backup.info'))
|
||||
if (defined($self->{oLogTest}) && $self->synthetic())
|
||||
{
|
||||
$self->{oLogTest}->supplementalAdd($self->repoPath() . '/backup/' . $self->stanza() . '/backup.info');
|
||||
}
|
||||
if (fileExists($self->repoPath() . '/backup/' . $self->stanza() . '/backup.info'))
|
||||
{
|
||||
$self->{oLogTest}->supplementalAdd($self->repoPath() . '/backup/' . $self->stanza() . '/backup.info');
|
||||
}
|
||||
|
||||
if ($self->synthetic() && fileExists($self->repoPath() . '/archive/' . $self->stanza() . '/archive.info'))
|
||||
{
|
||||
$self->{oLogTest}->supplementalAdd($self->repoPath() . '/archive/' . $self->stanza() . '/archive.info');
|
||||
if (fileExists($self->repoPath() . '/archive/' . $self->stanza() . '/archive.info'))
|
||||
{
|
||||
$self->{oLogTest}->supplementalAdd($self->repoPath() . '/archive/' . $self->stanza() . '/archive.info');
|
||||
}
|
||||
}
|
||||
|
||||
# Return from function and log return values if any
|
||||
|
Reference in New Issue
Block a user