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

Update lockStopTest() to optionally return a result rather than error.

Some commands (e.g. stanza-delete) would prefer to throw a customized error.

Contributed by Cynthia Shang.
This commit is contained in:
Cynthia Shang
2019-07-09 16:41:58 -04:00
committed by David Steele
parent 27b3246e85
commit a2dcdc0711
6 changed files with 33 additions and 15 deletions

View File

@ -266,7 +266,7 @@ cmdArchivePush(void)
THROW(ParamRequiredError, "WAL segment to push required");
// Test for stop file
lockStopTest();
lockStopTest(false);
// Get the segment name
String *walFile = walPath(strLstGet(commandParam, 0), cfgOptionStr(cfgOptPgPath), STR(cfgCommandName(cfgCommand())));
@ -404,7 +404,7 @@ cmdArchivePushAsync(void)
TRY_BEGIN()
{
// Test for stop file
lockStopTest();
lockStopTest(false);
// Get a list of WAL files that are ready for processing
StringList *walFileList = archivePushProcessList(walPath);