You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-27 00:21:08 +02:00
Remove incompletely implemented online option from the check command.
Offline operation runs counter to the purpose of this command, which is to check if archiving and backups are working correctly. Reported by Jason O'Donnell.
This commit is contained in:
@ -107,15 +107,11 @@ sub run
|
||||
################################################################################################################################
|
||||
if ($self->begin("Stanza::process()"))
|
||||
{
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
$self->configTestLoad(CFGCMD_CHECK);
|
||||
$self->optionTestSetBool(CFGOPT_ONLINE, false);
|
||||
$self->configTestLoad(CFGCMD_STANZA_CREATE);
|
||||
|
||||
my $oStanza = new pgBackRest::Stanza();
|
||||
|
||||
$self->testException(sub {$oStanza->process()}, ERROR_ASSERT,
|
||||
"stanza->process() called with invalid command: " . cfgCommandName(CFGCMD_CHECK));
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------------
|
||||
$self->configTestLoad(CFGCMD_STANZA_CREATE);
|
||||
rmdir($self->{strArchivePath});
|
||||
rmdir($self->{strBackupPath});
|
||||
$self->testResult(sub {$oStanza->process()}, 0, 'parent paths recreated successfully');
|
||||
|
Reference in New Issue
Block a user