You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Allow archive-get command to run when stanza is stopped.
The restore command can run while the stanza is stopped so it makes sense for the archive-get command to follow the same rule. The important thing is to ensure that all commands that write to the repository are stopped when the stanza is stopped.
This commit is contained in:
@@ -300,8 +300,7 @@ sub run
|
||||
|
||||
$oHostDbPrimary->executeSimple($strCommandPush . " ${strWalPath}/${strSourceFile}", {iExpectedExitStatus => ERROR_STOP});
|
||||
|
||||
$oHostDbPrimary->executeSimple(
|
||||
$strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG", {iExpectedExitStatus => ERROR_STOP});
|
||||
$oHostDbPrimary->executeSimple($strCommandGet . " ${strSourceFile1} ${strWalPath}/RECOVERYXLOG");
|
||||
|
||||
$oHostDbPrimary->start({strStanza => $oHostDbPrimary->stanza()});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user