You've already forked pgbackrest
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:
committed by
David Steele
parent
27b3246e85
commit
a2dcdc0711
@ -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);
|
||||
|
Reference in New Issue
Block a user