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

Convert lockAcquire() to lockAcquireP().

This makes a few current parameters optional and allows for more optional parameters with less code churn.
This commit is contained in:
David Steele
2023-03-24 10:34:42 +08:00
parent c8ec114c8c
commit f1caecc4ff
15 changed files with 67 additions and 57 deletions

View File

@ -726,9 +726,9 @@ testRun(void)
HRN_FORK_CHILD_BEGIN()
{
TEST_RESULT_VOID(
lockAcquire(
cfgOptionStr(cfgOptLockPath), cfgOptionStr(cfgOptStanza), STRDEF("999-dededede"), cfgLockType(), 30000,
true),
lockAcquireP(
cfgOptionStr(cfgOptLockPath), cfgOptionStr(cfgOptStanza), STRDEF("999-dededede"), cfgLockType(),
.timeout = 30000, .returnOnNoLock = true),
"acquire lock");
// Notify parent that lock has been acquired