1
0
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:
David Steele
2023-08-29 13:49:49 -04:00
parent 8424737697
commit fbd992adc7
3 changed files with 12 additions and 5 deletions

View File

@@ -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()});