1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Output lock file name when a lock cannot be acquired to aid in debugging.

This commit is contained in:
David Steele 2016-07-26 16:14:15 -04:00
parent d96b1a0dbc
commit 98a67792ec
2 changed files with 5 additions and 1 deletions

View File

@ -123,6 +123,10 @@
<release-item>
<p>All remote types now take locks. The exceptions date to when the test harness and <backrest/> were running in the same VM and no longer apply.</p>
</release-item>
<release-item>
<p>Output lock file name when a lock cannot be acquired to aid in debugging.</p>
</release-item>
</release-refactor-list>
</release-core-list>

View File

@ -119,7 +119,7 @@ sub lockAcquire
if (!defined($bFailOnNoLock) || $bFailOnNoLock)
{
confess &log(ERROR, "unable to acquire ${strLockType} lock", ERROR_LOCK_ACQUIRE);
confess &log(ERROR, "unable to acquire ${strLockType} lock on file ${strCurrentLockFile}", ERROR_LOCK_ACQUIRE);
}
}
else