pgbackrest.git / summary / log / commit / refs
commit 98a67792ecd02c05511de7ec9c1830a200326ea7
Author: David Steele <david@pgmasters.net>
Date: Tue Jul 26 20:14:15 2016 +0000
Output lock file name when a lock cannot be acquired to aid in debugging.
doc/xml/release.xml | 4 ++++
lib/pgBackRest/Common/Lock.pm | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/xml/release.xml b/doc/xml/release.xml
index 4f356598f..67320f781 100644
--- a/doc/xml/release.xml
+++ b/doc/xml/release.xml
@@ -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>
diff --git a/lib/pgBackRest/Common/Lock.pm b/lib/pgBackRest/Common/Lock.pm
index 045dbf3fe..c6aaf9f50 100644
--- a/lib/pgBackRest/Common/Lock.pm
+++ b/lib/pgBackRest/Common/Lock.pm
@@ -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
[parent: d96b1a0dbc86]